in reply to Regarding the new \w regexp escape in 5.11

The change isn't fully implemented yet. The problem is known and will be fixed.
  • Comment on Re: Regarding the new \w regexp escape in 5.11

Replies are listed 'Best First'.
Re^2: Regarding the new \w regexp escape in 5.11
by kappa (Chaplain) on Oct 06, 2009 at 12:30 UTC

    Thanks!

    Reading demerphq comments I understand that the way it's going to be fixed is not decided yet. So I'll watch this space closely now :)

    --kap

      This seems definite:

      Any version Before 5.12 Deterministic Behaviour Only in 5.12+
      To match [0-9] /[0-9]/ /\d/ (sometimes)
      /[[:digit:]]/ (sometimes)
      /\d/ (always) /\p{PosixDigit}/
      To match a Unicode Digit /\p{Digit}/ /\d/ (sometimes)
      /[[:digit:]]/ (sometimes)

      I don't know what's going to happen to /[[:digit:]]/.

      It's not clear (if it's been decided) if the deterministic behaviour will be active by default in 5.12+, or if a pragma (use 5.012;) will activiate it.

      If the deterministic behaviour will be active by default in 5.12+, there may be a pragma to deactivate it.