|
-
Sep 12th, 2007, 10:51 AM
#1
Thread Starter
Lively Member
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];
-
Sep 13th, 2007, 05:32 AM
#2
Re: Gathering Text from Tables with "preg_match_all"
Did you read the regular-expressions.info link I gave you?
-
Sep 13th, 2007, 07:52 AM
#3
Thread Starter
Lively Member
Re: Gathering Text from Tables with "preg_match_all"
 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|