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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[^<>`~!/@\#}$%:;)(_^{&*=|'+]+$
Description
A general string validation to insure that NO malicious code or specified characters are passed through user input. This will allow you to input any characters except those specified. The expression above does not allow user input of &lt;&gt;`~!/@\#}$%:;)(_^{&amp;*=|'+. Input as many invalid characters you wish to deny. This really works!
Matches
This is a test
Non-Matches
<href = | <br> | That's it
Author Rating: Not yet rated. Brenden Salta
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

Title: asada
Name: asdsada
Date: 9/12/2012 7:31:40 AM
Comment:
@fsdf


Title: Miles O'Brien would have difficulties…
Name: Herbert Kleinschmidt
Date: 2/6/2012 8:32:20 PM
Comment:
…if he tried to visit such a protected site.


Title: Correction
Name: Jake
Date: 11/12/2010 3:39:07 PM
Comment:
As Shad has said there is a slight mistake, it should be ^[^<>`~!/@\\#}$%:;)(_^{&*=|'+]+$ Note double \\ to escape the \ char Also the javascript literal version is: /^[^<>`~!\/@\\#}$%:;)(_^{&*=|'+]+$/ / literal / and \/ to escape the literal string end (/), this is applicable to all scripts here


Title: Bobby
Name: Shad
Date: 10/26/2005 12:34:04 PM
Comment:
There seems to be a mistake in it, \ actually aren't exclude


Title: Nice
Name: Jim
Date: 9/15/2005 8:08:59 PM
Comment:
Nice regex!


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