From: Jamal Mazrui Date: 2006-04-26T03:11:32+09:00 Subject: String interpretation First, I'm curious why a string delimited with apostrophe characters is not interpreted completely literally. Why does the language make an exception for the backslash character so that it needs to be doubled there as well? Second, how do I ensure that tokens are translated in a string variable? I am developing a program with a search feature. I want the user to be able to indicate carriage return, line feed, tab, and form feed characters using the standard tokens of \r, \n, \t, and \f. I do not want them to have to specify a true regular expression, however, since other characters such as a period would then need to be escaped and I want to minimize user knowledge requirements. If I save the user's find string to a variable (using WxRuby), and then search for it using the index method, tokens such as \n are interpreted literally. I thought that maybe input = "#{input}" would translate the characters, but this does not work, and I have not yet found a way. Jamal