ID:               17504
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: Linux
 PHP Version:      4.2.1


Previous Comments:
------------------------------------------------------------------------

[2002-05-29 06:21:50] [EMAIL PROTECTED]

What do you want us to do with this?

------------------------------------------------------------------------

[2002-05-29 06:15:39] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


------------------------------------------------------------------------

[2002-05-29 05:49:15] [EMAIL PROTECTED]

This code searches a string and returns all the email addresses in it.

preg_match_all("(([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4})",$StringToSearch,$matches);


for ($b=0; $b<sizeof($matches[0]); $b++) {
        echo $matches[0][$b]."<br>";
}

-toby

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17504&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to