in reply to Regular Expression match too much
m/\b$criteria\b/ - require a word break at each end of the text. Allows matches on 'SM and other stuff' or 'SM NP', but not on 'SMNP'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular Expression match too much
by ikegami (Patriarch) on Feb 08, 2006 at 20:08 UTC | |
by GrandFather (Saint) on Feb 08, 2006 at 20:11 UTC |