S
Shea Martin
I want to do this:
puts str
and have it print to the screen
C:\hardcoded\path, C:\\double\\escape\\path
To start with, I have
double_escape_path = "C:\\\\double\\\\escape\\\\path"
str = "C:\\hardcoded\\path, DOUBLE_ESCAPE_HERE"
Now do a gsub!
str.gsub!( 'DOUBLE_ESCAPE_HERE', double_escape_path )
The content, the problem is that gsub is also replacing my \\\\ with \\
for some reason.
Is this a bug?
Thanks.
puts str
and have it print to the screen
C:\hardcoded\path, C:\\double\\escape\\path
To start with, I have
double_escape_path = "C:\\\\double\\\\escape\\\\path"
str = "C:\\hardcoded\\path, DOUBLE_ESCAPE_HERE"
Now do a gsub!
str.gsub!( 'DOUBLE_ESCAPE_HERE', double_escape_path )
The content, the problem is that gsub is also replacing my \\\\ with \\
for some reason.
Is this a bug?
Thanks.