in reply to Re^2: Special Variables and Multiple Regexp Matching
in thread Special Variables and Multiple Regexp Matching

Glad to hear it did!

Of course, I don't know exactly what you're matching, but did you mean /\b$token\b/ instead of the /\b $token \b/ that you have in your original code, i.e., did you want spaces and word boundaries around the token or just word boundaries?