Re: REGULAR EXPRESSION
| From: | Richard Lynch | Date: | Sun, 04 Feb 2001 01:19:32 +0000 |
| Subject: | Re: REGULAR EXPRESSION | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38039@lists.php.net to get a copy of this message | ||
> I 'd like to have an input that contains only a to Z and space and
> ëàéêêàäïüöûâç- nothing else like numbers or whatever and also does not
start
> with space !
> till now with ur help i get the following :
>
> (!ereg("[a-zA-Z[:space:]ëàéêêàäïüöûâç-]", $name))
All those weird characters you typed are not ASCII, and are not valid to
just throw into a string like that.
You can maybe use Regex hex representations of them, but they aren't going
to be the same characters on many people's browsers anyway...
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm