Re: help with regexp (mail validation)
| From: | Philip Olson | Date: | Wed, 03 Jan 2001 02:07:24 +0000 |
| Subject: | Re: help with regexp (mail validation) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32451@lists.php.net to get a copy of this message | ||
This is a common feeling. Check out :
Learning to Use Regular Expressions by Example :
----------------------------------------------------------
http://phpbuilder.com/columns/dario19990616.php3
So What's A $#!%% Regular Expression, Anyway?! :
----------------------------------------------------------
http://devshed.com/Server_Side/Administration/RegExp/
PHP Manual : ereg() :
----------------------------------------------------------
http://www.php.net/manual/function.ereg.php
Regards,
Philip Olson
http://www.cornado.com/
On Tue, 2 Jan 2001, Christian Dechery wrote:
> I'm new - or even better, completely lame - at regexps... but I'm pretty
> interessed in understanding it (I have no need for it right now, it just
> seem to be really nice to know.)...
>
> I had to build a mail catalog... and I did it... to validate the emails I
> used regexps that I found here on the list... and they're working fine...
>
> can somebody please "translate" them for me? like:
>
> this regexp string means something that starts with 'this', has 'that' in
> the middle of 'those' and ends with 'that'....
>
> here it is:
>
> "/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/"
> and
> "/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/"
>
> thanks in advance...
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>