| Chris on 16 Jun 2006 21:56:58 -0000 |
|
I am trying to escape ( ) and \ in strings for an FDF file... So if the string is "(hello)" I would like output of "\(hello\)" ... I know, I know.. thats easy right??? Using gsub you get two backslashes... For just the (
"(hello)".gsub(/\(/,'\\\(')However that doesn't work! Anyone??? Chris Lorenzo _______________________________________________ talk mailing list talk@phillyonrails.org http://lists.phillyonrails.org/mailman/listinfo/talk
|
|