Sign in to follow this  
Followers 0
jackyyll

Stringregexp Help

4 posts in this topic

#1 ·  Posted (edited)

Alright heres my regexp:

$html = _IEBodyReadHTML ($oIE)
    $regexp = StringRegExp($html, "img([0-9]{1,3})/([0-9]{1,4})/" & StringTrimLeft(StringReplace(StringReplace(StringLower($file), "-", ""), "_", ""), 4) & "([a-z]{1,2})(.[a-z]{1,3})", 1)

Now when i try to do Msgbox(0,"", $regexp[0] & $regexp[1]) It says that $regexp is NOT an array :/ Whys it doing this? I have groups... And it worked in the regexp testing gui thing :/

Edited by jackyyll

Share this post


Link to post
Share on other sites



Did you check @Extended to see if it matched?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Alright heres my regexp:

$html = _IEBodyReadHTML ($oIE)
    $regexp = StringRegExp($html, "img([0-9]{1,3})/([0-9]{1,4})/" & StringTrimLeft(StringReplace(StringReplace(StringLower($file), "-", ""), "_", ""), 4) & "([a-z]{1,2})(.[a-z]{1,3})", 1)

Now when i try to do Msgbox(0,"", $regexp[0] & $regexp[1]) It says that $regexp is NOT an array :/ Whys it doing this? I have groups... And it worked in the regexp testing gui thing :/

Certainly the StringRegExp is returning and @error or @extended different from zero indicating that the function has not done its job :) Edited by jpm

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Nevermind, got it working... used this pattern instead

(.img)([0-9]{1,3})/([0-9]{1,4})/([a-z]{8,8})([0-9]{10,20})([a-z]{1,2})(.[a-z]{1,3})

Hoory for 100th post :)

Edited by jackyyll

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  
Followers 0