from the manual:

These functions all take a regular expression string as their first
argument. PHP uses the POSIX extended regular expressions as defined by
POSIX 1003.2. For a full description of POSIX regular expressions see the
regex man pages included in the regex directory in the PHP distribution.
It's in manpage format, so you'll want to do something along the lines of
man /usr/local/src/regex/regex.7 in order to read it.

-philip

On Wed, 16 Jan 2002, Neil wrote:

> There not much documentation in the online manual about eregi. Apart from
> the usage I need to know more about what regx it uses,
>
> in the linux shell , using grep i got it right for my needs ..
>
> I want to find and reject content with email address ..
>
> [desiredating@opie desiredating]$ echo "[EMAIL PROTECTED]" | grep "@*\."
> [EMAIL PROTECTED]
> [desiredating@opie desiredating]$ echo "meet me @ 8" | grep "@*\."
>
> -----------
> the above is correct and fine , but see below , it doesnt work in php ( the
> same regular expression doesnt )
>
> if (eregi("@.\.",$about_me))
>         {
>         include "error_msg/error_email_in_profile.php";
>         $error =1 ;
>         }
>
> --------
>
> What regular expression do i neep to use , is there any reference out there
> to tell me ?
> Urls / info is greatly appreciatted.
>
> Thanks in advance !!
>
> Neil
> --
>    Totally FREE dating site. FREE all-inclusive lifetime membership when you
> join today
>       Meet and date new people. Thousands of  members looking for someone
> like you
>    ==   http://www.desiredating.com     =   Join FREE today, you have
> nothing to lose
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to