From: William Djaja Tjokroaminata Date: 2001-10-22T22:49:26+09:00 Subject: [ruby-talk:22962] Re: How to Convert String to Regex to Perform Exact Match Thanks a lot for all the replies. Based on all the inputs, I conclude that the solution that I sought is reg = Regexp.new('\A' + Regexp.escape(str) + '\z') By the way, what is RAA? I tried to find MakeRegExp but on the web the one that I found was MakeRegExp in Perl! Regards, Bill