Matching a pattern only outside <>tags
Posted: Thu Mar 13, 2008 6:39 pm
I am searching for a pattern not inside <> characters.
For the given string "GKDLSD<span>DLK</span>DGEE", the regex /(s)/i should only return once. What is a regular expression I can use? The above example is very simplified, but that is definitely what I need is a way for the regex to only match characters outside of the html tags
For the given string "GKDLSD<span>DLK</span>DGEE", the regex /(s)/i should only return once. What is a regular expression I can use? The above example is very simplified, but that is definitely what I need is a way for the regex to only match characters outside of the html tags