I need to use new RegExp
I need to get a match if there is a specific string between two characters, but no match if that is a similar string between those characters, / and ?.
I.e:
String to match is:
"https://www.mysite.se/should-match?ba=11"
And I have should-ma
That should not give any match. But should-match should give a match
So I need to create new RegExp()
Any ideas?