Re: Regular Expression

From: Date: Mon, 19 Apr 2004 06:01:18 +0000
Subject: Re: Regular Expression
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33951@lists.php.net to get a copy of this message
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¢


« previous php.db (#33951) next »