Gathering Text from Tables with "preg_match_all"
I am not too familar with Regular Expressions, and their syntax's.
How should I set up some php code to echo this infomation:
(http://lukeidiot.com/proxylist.html)
this infomation: Just the Proxy, and Port Like such..
127.0.0.1:80
127.0.0.2:80
127.0.0.3:80
127.0.0.4:80
Heres an example of what i want code wise
NOTE: THIS CODE DOESN'T FOLLOW REGLUAR EXPRESSION'S SYNTAX. THIS IS WHAT I'M HAVING TROUBLE WITH, IS SETTING IT UP TO GET WILDCARD DATA OF *.**.**.**.**:* (127.0.0.1:80)
SO THE SCRIPT WOULD NAVIGATE TO http://lukeidiot.com/proxylist.html AND GATHER THE PROXY AND PORT AND ECHO/DISPLAY IT ON "PHPPROXYGET.PHP" OR SOMETHING.
php Code:
// gets proxy,port from URL
(preg_match ("/\b'*.*''*.*''*.*''*.*''*:*'\b/i",
"http://lukeidiot.com/proxylist.html", $matches);
$host = $matches[1];
Re: Gathering Text from Tables with "preg_match_all"
Did you read the regular-expressions.info link I gave you?
Re: Gathering Text from Tables with "preg_match_all"
Quote:
Originally Posted by penagate
Did you read the regular-expressions.info link I gave you?
Yeah, but It's hard to format it to only get the data out of the table.