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 <>`~!/@\#}$%:;)(_^{&*=|'+. 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 |
|
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!