in reply to Re^2: Regarding the new \w regexp escape in 5.11
in thread Regarding the new \w regexp escape in 5.11
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.
|
|---|