Shenghi Posted July 1, 2006 Posted July 1, 2006 (edited) is it me, or... is it a bug in the way AutoIt handles regular expressions?I have the following string:$string = "moo1 moo2 moo3 moo4 moo5"The following regexes _should_ all match, but they don't.(^|\032)moo1($|\032) - doesn't match (^|\032)moo2($|\032) - matches (^|\032)moo3($|\032) - matches (^|\032)moo4($|\032) - matches (^|\032)moo5($|\032) - doesn't matchIs there a way around this? Edited July 1, 2006 by Shenghi
Developers Jos Posted July 1, 2006 Developers Posted July 1, 2006 is it me, or... is it a bug in the way AutoIt handles regular expressions? I have the following string: $string = "moo1 moo2 moo3 moo4 moo5" The following regexes _should_ all match, but they don't. (^|\032)moo1($|\032) - doesn't match (^|\032)moo2($|\032) - matches (^|\032)moo3($|\032) - matches (^|\032)moo4($|\032) - matches (^|\032)moo5($|\032) - doesn't match Is there a way around this?Add a Space infront and behind $string before regex. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Shenghi Posted July 1, 2006 Author Posted July 1, 2006 Add a Space infront and behind $string before regex.Heh, nice way arround it However, when working with Tokens (which is what I am doing) I doubt it's a real solution. I'll ditch the regex, I guess.
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