
swatir88 at gmail
Apr 17, 2012, 5:37 AM
Post #5 of 12
(578 views)
Permalink
|
Try testing below rules, if you are trying to flag the mails containing the exact 'orange' word only and not other such as orangecat. Rest will depend upon requirement. Thanks, Swati On Tue, Apr 17, 2012 at 5:48 PM, dhanushka ranasinghe < parakrama1282 [at] gmail> wrote: > Hi.. guys.. > > I don't think regex is the issue , i tested the /(\W|^)Orange(\W|^)/i > its correctly doing the exact word match > > > Thank You > Dhanushka > > On 17 April 2012 17:44, Swati R <swatir88 [at] gmail> wrote: > > > > > > On Tue, Apr 17, 2012 at 5:39 PM, Tom Kinghorn <thomas.kinghorn [at] gmail > > > > wrote: > >> > >> On 17/04/2012 14:03, dhanushka ranasinghe wrote: > >>> > >>> > >>> Any idea why this is happening ? > >>> > >>> Thank You > >>> Dhanushka > >>> > >> > >> Try > >> > >> /^Orange$/i > >> > >> The $ specifies end of the word. > >> > >> Regards > >> Tom > > > > > > I think, this should work : > > > > /\bOrange\b/i > > > > Regards, > > Swati >
|