Results 1 to 3 of 3

Thread: Gathering Text from Tables with "preg_match_all"

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    95

    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:
    1. // gets proxy,port from URL
    2. (preg_match ("/\b'*.*''*.*''*.*''*.*''*:*'\b/i",
    3.     "http://lukeidiot.com/proxylist.html", $matches);
    4. $host = $matches[1];

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Gathering Text from Tables with "preg_match_all"

    Did you read the regular-expressions.info link I gave you?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    95

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width