RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details While Not Between
Expression
(?<!aaa((?!bbb)[\s\S])*)SomeText
Description
This .NET regex will match "SomeText" while not between the words "aaa" and "bbb". A good use of this is to find certain text while you are not inside of a certain HTML tag.
Matches
SomeText
Non-Matches
aaa SomeText bbb
Author Rating: The rating for this expression. Timothy Khouri
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials