CyberSlug Posted June 6, 2006 Share Posted June 6, 2006 (edited) I'm not getting something about StringRegEXP flag values.... $result = StringRegExp("aeiou", "[a-z]", 3 ) MsgBox(0x1000, "extended", @extended) MsgBox(0x1000, "isArray", IsArray($result)) I thought that if @Extended is true (1), then $result should be an array.... Tried AutoIt 3.1.1.113 and 3.1.1.125 on WinXP Pro sp2 Edit: corrected AutoIt version info Edited June 6, 2006 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
GaryFrost Posted June 6, 2006 Share Posted June 6, 2006 looks like a contradiction between the documentation for the flag and extended3 Perform a global search, checking the entire string, returning an array of all results. Check @Extended to determine whether the pattern matched or not. 1 (true) Match found. Return value is an array of all group values. If there are no groups in the pattern, the function returns "" (empty string). SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 6, 2006 Moderators Share Posted June 6, 2006 (edited) I'm not getting something about StringRegEXP flag values.... $result = StringRegExp("aeiou", "[a-z]", 3 ) MsgBox(0x1000, "extended", @extended) MsgBox(0x1000, "isArray", IsArray($result)) I thought that if @Extended is true (1), then $result should be an array.... Tried AutoIt 3.1.1.133 and 3.1.1.125 on WinXP Pro sp2(1) shows a wrong flag when the expression is written incorrectly I believe$result = StringRegExp("aeiou", "([a-z])", 3 ) If @extended And IsArray($result) Then For $i = 0 To UBound($result) - 1 MsgBox(64, 'Info:', $result[$i]) Next EndIf Edit: Gary's second quote was what I was getting at, that's what I meant other than "incorrectly". Edited June 6, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
CyberSlug Posted June 6, 2006 Author Share Posted June 6, 2006 Thanks for the help. I was forgetting parentheses in the RegExp I was trying. jpm and Nuster might need to take a look at the other issue.... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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