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 Negative Look-Around
Expression
^((?!string).)*$
Description
This expression will NOT match any string that contains the word "string". You can replace "string" with any list of characters you would like to prevent matching on.
Matches
strin, tring, 123tring, strin123
Non-Matches
string, 123string, string123, anythingwithstringinit
Author Rating: Not yet rated. Eric Bach
   Displaying page 1 of 1 pages; Items 1 to 1

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