Jump to content
GIGN Forum

Help Ar Meiliem


el_Moerto
 Share

Recommended Posts

Kr4, vajag tādu programmiņu vai kautko kas varētu izvilkt e-pastu adreses no kāda teksta faila un salikt tos smukā listē, itkā meklēju bet neko sakarīgu un bezmaksas neatradu, tātad, kāds ir par kautko tādu dzirdējis? Jau iepriekš paldies.

Edited by el_Moerto
Link to comment
Share on other sites

Ja php der

PHP

<?

  header

("Content-Type: text/plain; charset=utf-8");

  

$content=file_get_contents("tavs_fails.txt");

  

preg_match_all("/[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*+[a-z]{2,}/is",$content,$mails);

  foreach(

$mails[0] as $value){

      echo 

$value."\n";

  }

?>

Link to comment
Share on other sites

PHP

<?

  header

("Content-Type: text/plain; charset=utf-8");

  

$content=file_get_contents("tavs_fails.txt");

  

preg_match_all("/[a-z0-9&'.-_+]+@[a-z0-9-]+.([a-z0-9-]+.)*+[a-z]{2,}/is",$content,$mails);

  foreach(

$mails[0] as $value){

      echo 

$value."n";

  }

?>

Liels paldies, tūlīt ietestēšu.

EDIT: TY

Edited by el_Moerto
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...