preg_match in php

Posted by Satish on Stack Overflow See other posts from Stack Overflow or by Satish
Published on 2010-06-03T11:37:58Z Indexed on 2010/06/03 11:44 UTC
Read the original article Hit count: 250

Filed under:

I want to use preg_match() such that there should not be special characters such as `@#$%^&/ ' in a given string.

For example :

Coding : Outputs valid
: Outputs Invalid(String beginning with space)
12Designing : outputs invalid
Project management :Outputs valid (space between two words are valid)
123 :Outputs invalid

© Stack Overflow or respective owner

Related posts about php