A blog about How to personalized websites and marketing strategies. Covering php script, javascript, jquery, mysql, seo, e-commerce and others.

PHP Regex Extract Proxy From String

  • Extract IP:PORT Using PHP
  • Extract IP:PORT Using PHP Regex
  • Regular Expression Extract Proxy
$re = '/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):?([0-9]{1,6})?/m';
$str = '139.59.68.234:8080
213.136.87.217:80
66.70.255.195:3128
66.70.255.195:3128
64.90.244.115:8080
159.65.156.208:80
66.70.147.196:3128
66.70.147.197:3128
54.39.23.19:3128
139.59.224.50:80
142.44.137.222:80
179.107.51.203:80';

preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);

// Print the entire match result
var_dump($matches);
Facebook CommentsShowHide

0 komentar

Bila Ada posting yang kurang, atau error atau yang lainnya, silahkan tinggalkan komentar agar artikel/post di perbaiki.
Jangan Lupa Cek Box "Notify Me" agar tahu komentar kamu dibalas oleh saya.

If there are any posts that are missing, or error or anything else, please leave a comment for the article / post to be fixed.
Do not Forget Check Box "Notify Me" to know our comments replied by me.

Blank Template By webmanajemen.xyz