Jump to content

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...