/u
modifier is used in PCRE when we use unicode characters like /x{0xFF0}
.
Does it cause any problem if we have a regex like /^\d{10}$/u
(e.g. using unicode modifier when unicode is not used in regex) ? I ask this because I get different results in localhost and production server(using preg_match
function)
And if it doesn't cause any problem, why this modifier is not used by default?