python re match equivalent in javascript
This question already has an answer here:
您可以使用匹配功能。
> var str = "My name is Derek Last Name"
undefined
> str.match(/My name is (.+)/)[1]
'Derek Last Name'
链接地址: http://www.djcxy.com/p/76800.html
上一篇: 括号与正则表达式之间的字符串