in reply to Re: Regarding the new \w regexp escape in 5.11
in thread Regarding the new \w regexp escape in 5.11

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
  • Comment on Re^2: Regarding the new \w regexp escape in 5.11

Replies are listed 'Best First'.
Re^3: Regarding the new \w regexp escape in 5.11
by ikegami (Patriarch) on Oct 06, 2009 at 18:10 UTC

    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.