Hi,
Your answer almost correct for port length 4 ( xxxx) but its not working for
140.134.194.148 49400 TAIWAN (TW) 11/06/2006 Whois Info
it only filter the port to 4940
can you fix it?
Main Topics
Browse All TopicsHi,
i would like to know how to code in php to strip proxy list only from a textarea
ex.
in textarea contain
80.249.72.180:80 elite proxy Algeria (Algiers)
80.249.76.82:80 anonymous Algeria
190.49.168.251:6588 elite proxy Argentina (Buenos Aires)
83.160.170.10 8080 transparent Netherlands 2006-10-25 Whois
203.106.52.102 3128 transparent Malaysia 2006-10-25 Whois
213.52.140.53 80 anonymous Great Britain (UK) 2006-10-25 Whois
128.134.137.23:8080 3 Kb/s
138.89.253.5:33322 26 Kb/s
192.38.109.143:3128 23 Kb/s
165.228.131.10 3128 transparent Australia 2006-10-25 Whois
212.174.34.186 8080 anonymous Turkey 2006-10-25 Whois
1 202.147.181.2 8080 transparent Pakistan 2006-11-05 WHOIS
2 62.101.80.187 8080 high anonymity Italy 2006-11-05 WHOIS
3 84.20.143.8 8080 transparent Finland 2006-11-05 WHOIS
4 203.115.1.135 80 transparent Sri Lanka 2006-11-05 WHOIS
here the question:
I want to grab(filter) only
proxy:port
nothing else except that
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This should work:
<?php
$s = '80.249.72.180:80 elite proxy Algeria (Algiers)
80.249.76.82:80 anonymous Algeria
190.49.168.251:6588 elite proxy Argentina (Buenos Aires)
83.160.170.10 8080 transparent Netherlands 2006-10-25 Whois
203.106.52.102 3128 transparent Malaysia 2006-10-25 Whois
213.52.140.53 80 anonymous Great Britain (UK) 2006-10-25 Whois
128.134.137.23:8080 3 Kb/s
138.89.253.5:33322 26 Kb/s
192.38.109.143:3128 23 Kb/s
165.228.131.10 3128 transparent Australia 2006-10-25 Whois
212.174.34.186 8080 anonymous Turkey 2006-10-25 Whois
1 202.147.181.2 8080 transparent Pakistan 2006-11-05 WHOIS
2 62.101.80.187 8080 high anonymity Italy 2006-11-05 WHOIS
3 84.20.143.8 8080 transparent Finland 2006-11-05 WHOIS
4 203.115.1.135 80 transparent Sri Lanka 2006-11-05 WHOIS
yoho.uwaterloo.ca:8000 transparent Pakistan 2006-11-05 WHOIS
kleinbonum.ethz.ch:8000 elite proxy Algeria (Algiers)';
preg_match_all('/([\w\d]+\
$count = count($matches[1]);
for ($i = 0; $i < $count; $i++)
$lines[] = $matches[1][$i].':'.$match
print_r($lines);
?>
Business Accounts
Answer for Membership
by: TeRReFPosted on 2006-11-06 at 01:09:02ID: 17879668
<?php
.\d{1,3}\. \d{1,3}\.\ d{1,3})[:\ s]*(\d{1,4 })/', $s, $matches); es[2][$i];
$s = '80.249.72.180:80 elite proxy Algeria (Algiers)
80.249.76.82:80 anonymous Algeria
190.49.168.251:6588 elite proxy Argentina (Buenos Aires)
83.160.170.10 8080 transparent Netherlands 2006-10-25 Whois
203.106.52.102 3128 transparent Malaysia 2006-10-25 Whois
213.52.140.53 80 anonymous Great Britain (UK) 2006-10-25 Whois
128.134.137.23:8080 3 Kb/s
138.89.253.5:33322 26 Kb/s
192.38.109.143:3128 23 Kb/s
165.228.131.10 3128 transparent Australia 2006-10-25 Whois
212.174.34.186 8080 anonymous Turkey 2006-10-25 Whois
1 202.147.181.2 8080 transparent Pakistan 2006-11-05 WHOIS
2 62.101.80.187 8080 high anonymity Italy 2006-11-05 WHOIS
3 84.20.143.8 8080 transparent Finland 2006-11-05 WHOIS
4 203.115.1.135 80 transparent Sri Lanka 2006-11-05 WHOIS';
preg_match_all('/(\d{1,3}\
$count = count($matches[1]);
for ($i = 0; $i < $count; $i++)
$lines[] = $matches[1][$i].':'.$match
print_r($lines);
?>