Re:Why Using .* in Regular Expressions Is Almost Never What ...
by pyre on Wednesday June 04, 2014 @11:06AM
(#7845953)
There's also the character classes in Unicode:
Re:Why Using .* in Regular Expressions Is Almost Never What ...
by fennecfoxen on Wednesday June 04, 2014 @10:55AM
(#7845862)
> /\d/.test("\u2169")
false
http://www.charbase.com/2169-unicode-roman-numeral-ten
(even more in http://www.charbase.com/block/number-forms)
I'm not sure if Javascript matches these in its \d pattern, however, but I think that most regexp engines default to the ascii [0-9] unless you are using \p{Number}.