From: Marko Schulz Date: 2001-10-22T20:25:52+09:00 Subject: [ruby-talk:22954] Re: How to Convert String to Regex to Perform Exact Match On Sat, Oct 20, 2001 at 03:53:23AM +0900, Joseph McDonald wrote: > > Are you looking for this: > reg = Regexp.new(Regexp.escape("abc.de")) Since a perfect was sought '\A' and '\z' should be added at the beginning and end: reg = Regexp.new('\A' + Regexp.escape("abc.de") '\z') -- marko schulz