Re: checking for characters
| From: | Egil Helland | Date: | Tue, 09 Apr 2002 23:17:33 +0000 |
| Subject: | Re: checking for characters | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12991@lists.php.net to get a copy of this message | ||
Brush up on your patternmatching then, brother. Check the php.net manual on regexp.
If you want more readable code, try splitting the string (explode) on @ first, then split the segment after @ that you now have on . again.
Cheers,
Egil (in Norway, so I am way past bedtime myself :))
On Wednesday, April 10, 2002, at 01:07 AM, brother wrote:
I tried my best to find a nifty function to check for letters in a string but with no luck, maybe the sleepnesfactor has to do with it? (it's 01:05am here in Sweden). I have a form that posts some text, one field is a emailadressthing, I want to check the string that this field produces and see if there is a @ and at leaste one . after the @. help me =) zzzzz /brother -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --egil helland / it consultant (mcse, web technology) web: ikon.as / egil.net