I'm glad that helped. Be careful, though. (?:) may look like a lookahead (?=), but all it does is group without capturing. It's useful in cases like yours where all of the capture variables would be stored in the array--in other cases, I usually don't bother. :)
You can read up on this in perldoc perlre.
Warm regards,
Damon
Sumanth Sharma wrote: > Hi Damon, > That's great. It works. I did not know that look ahead could be that > helpful. >> m/((?:ab){5,14})/g
--
Damon Allen DAVISON http://www.allolex.net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>