May 19, 2003 #1 kirk124 Programmer Joined Apr 15, 2003 Messages 26 Location US Hi, How can I do a substitution to change "c:\tmp/sup" to "c:\\tmp\\sup". I tried s/\/|\\/\\\\/ but it did not work. --thanks
Hi, How can I do a substitution to change "c:\tmp/sup" to "c:\\tmp\\sup". I tried s/\/|\\/\\\\/ but it did not work. --thanks
May 19, 2003 #2 PaulTEG Technical User Joined Sep 26, 2002 Messages 4,469 Location IE Instead of using escaped \ ie \\, just use / HTH Paul Upvote 0 Downvote
May 19, 2003 #3 justice41 Programmer Joined May 29, 2002 Messages 755 Location US try using a character class in the substitution instead of '|': Code: s#[/\\]#\\\\#g; jaa Upvote 0 Downvote