Hawkwing Posted September 24, 2009 Share Posted September 24, 2009 #include<array.au3> $array = StringRegExp("test1 test2 test3 test4 test5 ", "([a-z]{1,}[0-9] ){1,}", 1) _ArrayDisplay($array) It looks to me like this script should display an array where $array[n] = testn (where n = a number), but it only displays the last one, test5. So when the group is repeated because of {1,}, does it overwrite whatever was previously stored by the group? If that's the case, how do I make it so it doesn't overwrite it? The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
smashly Posted September 24, 2009 Share Posted September 24, 2009 Hi,#include<array.au3> $array = StringRegExp("test1 test2 test3 test4 test5 ", "\w+", 3) _ArrayDisplay($array) Cheers 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