From: Ammar Ali Date: 2010-11-19T23:00:14+09:00 Subject: Re: Multi-line regular expression match question On Fri, Nov 19, 2010 at 3:50 PM, Ammar Ali wrote: > > If you're using ruby 1.9 you can do us that, *? is the reluctant version of *: > >  /^\|-:$.*?^-\|$/m ---8<--- > If you're on 1.8, one possibility is: > >  /^\|-:$(?m:.*?)(?=^-\|)^-\|$/ I was under the impression that the reluctant versions of the four quantifiers was only available under ruby 1.9, but they are apparently available under 1.8 as well. I used it in the example I showed for 1.8 without noticing. Regards, Ammar