以下正则表达式适用于使用C# reg ex:
```
^(?#_surveyForm.+) | #(?:(?http.+\.\w{3,4}).+_surveyForm=\w+)$
```
它能匹配以下字符串:
它能匹配以下字符串:
#http://localhost/tableaux-p145717.htm=&_surveyForm=second
或者
#_surveyForm=second
我使用了命名捕获组。
我知道Javascript没有利用命名捕获组(而是使用\1、\2等)。此外,语法与上面的略有不同。
我该如何使这个正则表达式符合Javascript标准?
提前致谢,
R。