Jump to content
Sign in to follow this  

StringRegExp problem

Recommended Posts

Well it has been some time since i used autoit. Im running the latest official release (not BETA) and windows Vista. I run this simple test code :

#include <INet.au3>

$temp = _INetGetSource('www.autoitscript.com')

$array =  StringRegExp($temp,'href(.*?)>',1)


Well if you check the source code yourself you will see that this pattern exists quite many times in there. But the result i get is always 1 which means it stops on first occurence.

I have also tried '(?i)href(.*?)(?i)>' at search pattern but no luck. First time with this command but either something is wrong or im completely idiot.

PS i have executed the example code of StringRegExp and the result is the same . Although ubound should show 3 it is 1 again.

Any ideas?

Share this post

Link to post
Share on other sites


$array = StringRegExp($temp,'href(.*?)>',3)

Edit: grr... Too slow

Edited by Kerros

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...