Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a whole lot of these numeral characters in unicode, for example:

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}.



There's also the character classes in Unicode:

http://www.fileformat.info/info/unicode/category/index.htm


> /\d/.test("\u2169")

false




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: