A regexp like this should work:

/^([a-zA-Z]|\s)+$/

Cheers,
Andy Ladouceur

Andy Amol wrote:

Hi,
I would like to test whether a given sting contains only character, it should also support spaces.
eg "Course Book String". I am able to test "CourseBookString".
Also I would like to know how can we avoid wild chars like *, or any other char apart from alpha numeric char.
Thanks.


                
---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to