Jump to content

Stringregexp Help


Recommended Posts

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
Link to comment
Share on other sites

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