Jump to content
Sign in to follow this  

[SOLVED] StringRegExp()

Recommended Posts


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


"/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)


$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

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.