Why does \w match only English words in javascript regex?

后端 未结 10 885
借酒劲吻你
借酒劲吻你 2020-12-09 20:26

I\'m trying to find URLs in some text, using javascript code. The problem is, the regular expression I\'m using uses \\w to match letters and digits inside the URL, but it d

10条回答
  •  轮回少年
    2020-12-09 21:00

    Have a look at http://www.regular-expressions.info/refunicode.html.

    It looks like there is no \w equivalent for unicode, but you can match single unicode letters, so you can create it.

提交回复
热议问题