From: Wes Gamble Date: 2006-05-03T03:45:34+09:00 Subject: Easy way to escape text for use in regexps? I need to be able to include some arbitrary text as input into a regular expression and I'm looking for a way to escape regular expression metacharacters within my data(e.g. escape a "?" for example). Is there a library somewhere that has this function available? Thanks, Wes -- Posted via http://www.ruby-forum.com/.