in reply to Using Spaces in a Regex With the X Modifier

Spaces that are escaped by a backslash, defined as \x20 or similar, included in a character class, or referenced by meta-char-classes like \s are still spaces even in /x mode. Most spaces should be matched with \s anyway, because you can't visually distinguish a space from a tab character.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Using Spaces in a Regex With the X Modifier