Regular Expression for Japanese characters

前端 未结 3 1580
-上瘾入骨i
-上瘾入骨i 2020-12-05 15:43

I am doing internationalization in Struts. I want to write Javascript validation for Japanese and English users. I know regular expression for English but not for Japanese u

3条回答
  •  自闭症患者
    2020-12-05 16:36

    Provided your text editor and programming language support Unicode, you should be able to enter Japanese characters as literal strings. Things like [A-X] ranges will probably not translate very well in general.

    What kind of text are you trying to validate?

    What language are the regular experssions in? Perl-compatible, POSIX, or something else?

提交回复
热议问题