How to convert a string into a regular expression in javascript

后端 未结 0 644
感情败类
感情败类 2020-12-11 23:57

For example I got a string in client from the server:

\"/hello\\s{0,1}[-_.]{0,1}world|ls\\b/gim\"

In client I wants to convert this string

相关标签:
回答
  • 消灭零回复
提交回复
热议问题