The following regular expression is workable using C# reg ex:
^(?<survey>#_surveyForm.+)|#(?:(?<url>http.+\.\w{3,4}).+_surveyForm=\w+)$
It matches string such as:
#http://localhost/tableaux-p145717.htm=&_surveyForm=second
or
#_surveyForm=second
I used named capturing groups.
I know Javascript doesn't take advantage of named capturing groups (instead it uses \1, \2, etc.). Besides the syntax is slightly different from the one above.
How can I make that reg ex javascript-compliant?
Thanks in advance,
R.