Regex to Match only language chars (all language)?
问题 I need to restrict users input only to alpha numeric chars. If it was only in English It would be easy $[a-z]^/i But I need to do it global e.g. for every language. Is there any sequential unicode range that include all "chars" ? If not , How can I do it ? p.s. I saw this answer but the answer was for pythoin 回答1: If you use Steve Levithan's XRegExp package with Unicode add-ons, then it's easy: var regex = XRegExp('^\\p{L}*$'); (Note that ^ is the start-of-string anchor, and $ is the end-of