Jump to content

[SOLVED] StringRegExp()


Recommended Posts

I can read EVERY single part of the AutoIt documentation and understand it... but StringRegExp() drives me up the wall...

:D:P

"/proxy-list/port.php?server=230906" <--- that appears MANY times within a PHP generated HTML page... I need to find all occurrences... I asked for help on RegExp before, and when I went back to the post, I can't find documentation for something...

It ended up looking something like...

$SourceText = "callServer_np('/new_pm.php?uid=1234567');</script></td></tr></table></td></tr></table></td><td class=header_right><img src=/images/p.gif width=29 height=1>"
Const $Pattern = "/new_pm\.php\?uid=([^']+)"

Dim $Matches = StringRegExp($SourceText, $Pattern, 1)
Dim $Match = $Matches[0]

ConsoleWrite($Match & @CRLF)

SOLVED

$PortImage = StringRegExp($List,"/proxy-list/port\.php\?server=([^']{6})", 3)

Although I still don't understand it... I managed to guess it to death... lol

+1 BinaryBrother (Accomplishment)

-1 BinaryBrother (Making a useless Topic)

:unsure: I can never pull ahead...

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...