Chris on 16 Jun 2006 21:56:58 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PhillyOnRails] Ruby gsub question

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 (

However that doesn't work! Anyone???

Chris Lorenzo
talk mailing list