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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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