@ 2015-03-16T13:10:44Z <?php
$string = '103.249.101.68:49385#VN
195.34.78.172:8085#GI
79.127.107.140:808#IR
125.119.253.130:8118#CN
1.175.106.206:3128#TW
190.206.112.238:8080#VE
91.238.114.227:8085#RU
111.13.55.3:22#CN
115.58.111.66:8118#CN
14.139.172.163:3128#IN
186.88.241.86:8080#VE
186.95.27.25:8080#VE
195.191.40.195:8085#RU
60.161.29.253:8585#CN
125.112.11.94:8118#CN
190.73.116.219:8080#VE
119.108.17.159:8118#CN
190.39.80.250:8080#VE
190.200.7.228:8080#VE
91.216.3.50:8085#RU
188.72.96.192:8085#NL
175.43.20.95:80#CN
60.188.28.91:18186#CN
193.105.154.173:8085#--
121.40.96.243:3128#CN';
preg_match_all('/([0-9]{1,3}\.){3}[0-9]{1,3}/:[0-9]{1,5}', $string, $matches);
var_dump($matches[0]);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.3.0 - 8.3.6 Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30
Warning: Trying to access array offset on null in /in/HUQqn on line 31
NULL
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30
Warning: Trying to access array offset on value of type null in /in/HUQqn on line 31
NULL
Output for 7.4.0 - 7.4.33 Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30
Notice: Trying to access array offset on value of type null in /in/HUQqn on line 31
NULL
Output for 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30
NULL
Output for 4.3.11 , 4.4.0 - 4.4.9 , 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30
Notice: Undefined offset: 0 in /in/HUQqn on line 31
NULL
Output for 4.3.0 - 4.3.10 Warning: Unknown modifier ':' in /in/HUQqn on line 30
Notice: Undefined offset: 0 in /in/HUQqn on line 31
NULL
preferences:dark mode live preview
310.71 ms | 401 KiB | 459 Q