Strange. I copied the above code and ran it and got this output:
P:\test>junk and this finds <and> matches and highlights matches <and> highlights matches.
Which is correct as far as I can tell?
It found and highlighted both "and"s; That is what you mean by multiple matches isn't it?
In reply to Re^3: Regex: Matching around a word(s)
by BrowserUk
in thread Regex: Matching around a word(s)
by shotgunefx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |