jackyyll Posted April 2, 2006 Share Posted April 2, 2006 (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 April 2, 2006 by jackyyll Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 Did you check @Extended to see if it matched? Link to comment Share on other sites More sharing options...
jpm Posted April 2, 2006 Share Posted April 2, 2006 (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 April 2, 2006 by jpm Link to comment Share on other sites More sharing options...
jackyyll Posted April 2, 2006 Author Share Posted April 2, 2006 (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 April 2, 2006 by jackyyll Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now