From: Nikolai Weibull Date: 2005-04-01T06:10:59+09:00 Subject: Re: Regex parsing question * Paul Hanchett (Mar 31, 2005 23:00): > text= "AABBCCDDEE" > regex = %r{(.*)(.*)} use regex = %r{(.*?)(.*)} The .* will match the first and will only relinquish the second so that an overall match can be made (for the -part of the regex), nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}