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

It does! The only problem is that it's still not catching a match that happens twice in a line. So in your sample data, (thank you for supplying some as I clearly neglected to) the output data is missing the second "perl."
  • Comment on Re^2: Special Variables and Multiple Regexp Matching

Replies are listed 'Best First'.
Re^3: Special Variables and Multiple Regexp Matching
by Kenosis (Priest) on Nov 19, 2013 at 06:13 UTC

    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?