Can regular expressions work with different languages?

后端 未结 8 1482
慢半拍i
慢半拍i 2020-12-10 05:42

English, of course, is a no-brainer for regex because that\'s what it was originally developed in/for:

Can regular expressions understand this charact

8条回答
  •  北海茫月
    2020-12-10 06:13

    It depends on the implementation and the character set. In general the answer is "Yes," but it may require additional setup on your part.

    In Perl, for example, the meaning of things like \w is altered by the chosen locale (use locale).

提交回复
热议问题