http://qs1969.pair.com?node_id=801891


in reply to About \d \w and \s

My quick reaction is that the default should be /a and people should have to explicitly request /u.

To the extent it breaks existing code, I think it's in the interest of ensuring that going forward, there are the least amount of surprises for new code being written. If there's a way to "use re 'legacy_unicode'" so people can drop that at the top of their code instead of fixing every individual regex, that seems like an easy enough way to offer back compatibility.

But I firmly believe the future default should not be the legacy behavior.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.