Jump to content

Recommended Posts

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

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
  • Recently Browsing   0 members

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