RE: [PHP] using eregi

2002-01-31 Thread Niklas Lampén

You could do it like this:

";
};
?>

Niklas


-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]] 
Sent: 31. tammikuuta 2002 15:32
To: [EMAIL PROTECTED]
Subject: [PHP] using eregi


Hello,
Just wondering if there is a way to print out parts of a text file (i.e
from 
line x to line y) using php, the way it is being done now is using eregi
and 
comparing strings, but it would be alot better if I could specify which 
lines to print.
Thanks a million.



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
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]




[PHP] using eregi

2002-01-31 Thread John Gurley

Hello,
Just wondering if there is a way to print out parts of a text file (i.e from 
line x to line y) using php, the way it is being done now is using eregi and 
comparing strings, but it would be alot better if I could specify which 
lines to print.
Thanks a million.



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
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] using eregi - what regular expression rules does it use ? works in linux ( grep ) but not PHP - help needed

2002-01-16 Thread Neil

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]