Advertisement
Kyfx

E-Mails Extrator from Text (Mini helper)

Dec 7th, 2015
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Mail Extrator by Kyfx</title>
  5. <style type="text/css">
  6. textarea{
  7. font-size: 15px;
  8. font-family: Tahoma;
  9. color: #0078AA;
  10. border: dashed 1pt #0000BB;
  11. }
  12. input{
  13. color: #FF0000;
  14. border: dotted 1pt #0078AA;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <center> <br>
  20. Mail Extrator from Text (is just mini helper) <br>
  21. coded by <a href="https://twitter.com/3M4i1">Kyfx</a> and i want to say thanks to my frineds <br>
  22. Thamk u supporters<a href="https://twitter.com/3M4i1">Twitter</a> or
  23. my <a href="http://pastebin.com/u/Kyfx">pastebin account</a> <br><br>
  24. <form method="post">
  25. <textarea name="magnom" cols="111" rows="15"></textarea> <br>
  26. <input type="submit" name="mr" value="Extrat Emails only"/>
  27. </form>
  28. <br>
  29. </center>
  30. </body>
  31. </html>
  32. <?php
  33. if($_POST['mr']){
  34. $text=$_POST['magnom'];
  35. preg_match_all('#[A-Z0-9a-z._%+-]+@[A-Za-z0-9.+-]+#',$text,$matches);
  36. foreach ($matches[0] as $ul){
  37. echo $ul."<br>";
  38. } }
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement