RE: [PHP] Extract email address from string

2001-08-18 Thread Seb Frost
Well you need to search for @ then search forwards and backwards till you get to whitespaces store those positions then use the substr function. - seb -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: 19 August 2001 03:37 To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Extract email address from string

2001-08-18 Thread Andrew Libby
Seb, Seomthing like ?PHP $string = Please send all email to [EMAIL PROTECTED] with a; ereg('.* (.*@[^ ]* )',$string,$m); echo $m[1] . \n Might be a start. Andy On Sun, Aug 19, 2001 at 03:44:35AM +0100, Seb Frost wrote: Well you need to search for @ then search forwards and backwards