diepfeile Posted May 8, 2009 Posted May 8, 2009 it should search for the same pattern multiple times and put it's findings into $data, but it's not working any suggestions? #include <Array.au3> $text = "1234asd1234kjhfkg1234jhdfgk1234kdhfg1234dfgdfg1234dfgd1234" $data = StringRegExp($text,"(34([[:alpha:]]+)12){1,10}",1) _ArrayDisplay($data,"data")
Moderators SmOke_N Posted May 8, 2009 Moderators Posted May 8, 2009 (edited) Try putting 3 instead of 1 in the 3rd parameter. Edit: #include <Array.au3> $text = "1234asd1234kjhfkg1234jhdfgk1234kdhfg1234dfgdfg1234dfgd1234" $data = StringRegExp($text,"(34([[:alpha:]]+)12)",3) _ArrayDisplay($data,"data") Edit2: This almost looks like what you're trying to do if the above is not:#include <Array.au3> $text = "1234asd1234kjhfkg1234jhdfgk1234kdhfg1234dfgdfg1234dfgd1234" $data = StringRegExp($text,"(34[[:alpha:]]+12)",3) _ArrayDisplay($data,"data") Edited May 8, 2009 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.
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