I have this code
htmlString= htmlString.replace( new RegExp( "WW(.+?)WW", "gim" ),
"<span style='color:red;border-bottom:1px dashed red;'>$1</span>" );
This seems to work however it is replacing the www's in url's. What I have is WW somestring WW I clip out the text between WW and replace it. However, I can't seem to only get the exact char sequence. I tried {WW} ^WW [^WW] with the end [$WW] and variations. Also tried \bWW string \bWW and no match.
Any help would be great, thanks.