Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Re: Match text outside of links

  •  07-07-2009, 12:23 AM

    Re: Match text outside of links

    Try:

    phrase to match(?!((?!</?a\b).)*</a>)

    This extends the check to make sure that the outer negative lookahead is only interested in the "<a...>" or "</a>" tags rather than the beginning of any tag as in your pattern.

    Susan 

View Complete Thread