≡ Menu




Nice Regular expression for text input

i found a use full regular expression vaildating input string, you can use it to filter sql injection attacks while taking input for username, title ect.

^[a-zA-Z]+(([.- ][a-zA-Z0-9 ])?[a-zA-Z0-9]*)*$

{ 0 comments… add one }

Leave a Comment