javascript - \d only matchs 0-9 digits? -


as far know, \d should matchs non-english digits, e.g. ۱۲۳۴۵۶۷۸۹۰ doesn't work in javascript.

see jsfiddle: http://jsfiddle.net/xzpam/

is normal behavior?

javascript not support unicode regex matching (and far language such true).

http://www.regular-expressions.info/unicode.html


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -