Tom Lieber on 17 Jun 2006 00:10:08 -0000 |
On 6/16/06, Chris <theechief@comcast.net> wrote: Using gsub you get two backslashes...
"(hello)".gsub(/\(/,'\(') Note that if you just type that into irb, it will show you two slashes because it outputs with the escapes. This will show you what it really is: puts "(hello)".gsub(/\(/,'\(') Chris Lorenzo
Tom Lieber http://AllTom.com/ http://GadgetLife.org/ _______________________________________________ talk mailing list talk@phillyonrails.org http://lists.phillyonrails.org/mailman/listinfo/talk
|
|