Hi,

At Fri, 9 Dec 2005 13:37:35 +0900,
basi wrote in [ruby-talk:169793]:
> Thus "Drake" and "Dride satisfy the pattern "Dr", becoming "Drke" and
> "Drde". I've tried many variations on the pattern /#{a}/, but I just
> don't have enough Regex in my mind yet.

It's not caused by greediness.  You have to escape Regexp meta
characters.

  /#{Regexp.quote(a)}/

-- 
Nobu Nakada