vielen dank schonmal für die schnelle hilfe. jetzt habe ich aber noch ein paar probleme:
ich hab ein normales formular mit dem der string an das script geschickt wird. mein script sieht bis jetzt so aus:
---[PHP]---
<?php
if ($_POST['submit']) {
preg_match_all("(([a-z0-9_]|-|>.)+@(([a-z0-9_]|-)+.)+[a-z]{2,4})", $_POST['text'], $ausgabe, PREG_PATTERN_ORDER);
foreach($ausgabe[0] as $email_now) {
echo $email_now . "<br>";
}
}
?>
---[/PHP]---
wenn ich meinem script jetzt als test zum beispiel das
---[string]---
chantimaag8@hotmail.com, csfblackcobra@hotmail.com,
debsy_1@hotmail.com, hardstylemaster86@hotmail.com, jbaechli@msn.com,
karolette_89@hotmail.com, krocki_88@msn.com,
larissa_charmed@hotmail.com, leaminder@hotmail.com,
liv_gelpke@hotmail.com, mex_meets_schlumpf@hotmail.com,
manuelatiziani@hispeed.ch, naschu13@hotmail.com,
raegewoermli@hotmail.com, rahelma@msn.com, rockrockt@hotmail.com,
roooney_schulthi@hotmail.com, schnuggihaesli_89@hotmail.com,
sunneschii_60@hotmail.com, tobi.meier@gmx.ch
Date: Fri, 01 Jul 2005 13:48:03 +0200
---[/string]---
"füttere", kommt als ausgabe das raus:
---[ausgabe]---
chantimaag8@hotmail.com
csfblackcobra@hotmail.com
debsy_1@hotmail.com
hardstylemaster86@hotmail.com
jbaechli@msn.com
karolette_89@hotmail.com
krocki_88@msn.com
larissa_charmed@hotmail.com
leaminder@hotmail.com
liv_gelpke@hotmail.com
mex_meets_schlumpf@hotmail.com
manuelatiziani@hispeed.ch
naschu13@hotmail.com
raegewoermli@hotmail.com
rahelma@msn.com
rockrockt@hotmail.com
roooney_schulthi@hotmail.com
schnuggihaesli_89@hotmail.com
sunneschii_60@hotmail.com
meier@gmx.ch
---[/ausgabe]---
jetzt möchte ich gerne noch die ">>>" und sonstige nicht erlaubte zeichen in einer email adresse "verbannt" haben ..
aufgefallen ist mir auch noch, dass er die letzte adresse "tobi.meier@gmx.ch" nur noch als "meier@gmx.ch" ausgibt.
vielen dank schon mal im voraus, josef