From: David Alan Black Date: 2002-05-16T10:12:48+09:00 Subject: Re: How to Convert Regex Back to String in Exact Match? Hi -- On Thu, 16 May 2002, Nikodemus Siivola wrote: > > On Thu, 16 May 2002, David Alan Black wrote: > > > re.source.sub(/\A\\A/, '').sub(/\\z\z/, '').gsub(/\\(.)/, '\1') > > Nice ;) Now just bundle it up with unit tests... Funny though how > our versions are very much about size vs. work. Your is much > more elengant, though. The above line was cut-and-pasted from Nobu (just to give credit where it's due :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav