for e.g.
Code: Select all
/cat|hat|sat/but notcat or sat
catalyst or saturday
Moderator: General Moderators
Code: Select all
/cat|hat|sat/but notcat or sat
catalyst or saturday
Code: Select all
/\b(cat|hat|sat)\b/
aaahhh i see the \b at the end of the pattern...i only had it before the pattern thanksWeirdan wrote:http://www.regular-expressions.info/wordboundaries.htmlCode: Select all
/\b(cat|hat|sat)\b/