Are your search strings really always surrounded by whitespace (and is that really in contrast to your exceptions?) If so, you might get away with something as simple as /\sALPHA\s/. Or maybe /(^|\s)ALPHA\s/ if your string could begin a line.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Pattern matching when there are exception strings
by sauoq
in thread Pattern matching when there are exception strings
by Moron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |