Your regexp is getting turned into //ms, which matches everything, because whitespace is removed from the regex when you use /x. Either remove the /x modifier, or use \s instead of literal whitespace.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Regex for Differentiating Underscore and Whitespace
by jasonk
in thread Regex for Differentiating Underscore and Whitespace
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |