I have this regular expression in my Javascript code:
/##+[A-z]+##/
When using it on the following text:
<a href="EditUsers.aspx?UserName=##UserName##">##Address##</a>
it only matches ##UserName##, whereas it should match both ##UserName## and ##Address##.
What am I doing wrong?
You need the
gflag to perform a global search:BTW, are you sure about that first
+? And case-insensitivity is usually done with theiflag.Perhaps you want: