From: Martin DeMello Date: 2005-02-18T17:24:49+09:00 Subject: Re: Newbie needs help with escaping regex Logan Capaldo wrote: > An alternative is to use %r{} syntax. > > %r{(now|I)can (use)+ as many /* as I? want} > > Of course the downside being is now you have to escape { }. But your > pattern doesn't seem to contain any of those anyway. %r can take a pretty much arbitrary delimiter (I forget what isn't allowed). e.g. %r|hello| %r %r=this= etc. The first character after the r acts as the opening delimiter, if it's one of a pair the other one acts as the closing, otherwise the opening character closes it too. martin