in reply to substitutions with unknown data
\b finds boundaries between \w and \W characters. What you want instead is:
/(?<!\S)\Q$face\E(?!\S)/
which means that the face can't be preceeded by a non-space characters [like (?<=\s) except it allows $face to appear at the front of the message] and can't be followed by a non-space characters [like (?=\s|$)].
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: substitutions with unknown data (\b is \w not \s)
by sulfericacid (Deacon) on Mar 28, 2005 at 20:37 UTC | |
by tye (Sage) on Mar 28, 2005 at 21:14 UTC |