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

后端 未结 10 888
借酒劲吻你
借酒劲吻你 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 20:53

    I think you are looking for this regex:

    ^[אבגדהוזחטיכלמנסעפצקרשתץףןםa-zA-z0-9\s\.\-_\\\/]+$
    

提交回复
热议问题