Hacker News new | ask | show | jobs
by Lindrian 4712 days ago
Do you mean its not explained correctly or its not in the quickref? Its not enabled by default because it changes the behavior of many things, for example what \d and \w match. The user has to decide for himself what flags to use.
1 comments

It's not in quickref. Of course it changes, and it should be default. There are languages other than English.
I'm not sure I agree it should be default; it's not expected behavior. Either way, there are too many flags to add them all to the quickref, I figured I would just show the most common.
Right now, even café is not matched by \w{4}. If this is what you call expected
Yes, this is explicitly a tool that uses PCRE via PHP. So I'd expect the behaviour to exactly reflect that of the `preg` suite in PHP... which does not use `u` by default.