in reply to Re^4: Something strange in the world or Regexes
in thread Something strange in the world or Regexes

Thanx for this nugget.

Leading to the confusing situation that \s (all whitespace) matches less than [\h\v] (both horizontal and vertical WS) :).

Replies are listed 'Best First'.
Re^6: Something strange in the world or Regexes
by JavaFan (Canon) on Sep 30, 2009 at 14:08 UTC
    Yes, but at least this way \s is somewhat "fixed" without breaking code. "NEXT LINE" ("\x85") is matched by \s only in UTF-8 matching, but always by \v. And perhaps more importantly, a vertical tab (aka LINE TABULATION or "\x0b") is never matched by \s, but always by \v.