May 19, 2003 #1 kirk124 Programmer Apr 15, 2003 26 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 Sep 26, 2002 4,469 IE Instead of using escaped \ ie \\, just use / HTH Paul Upvote 0 Downvote
May 19, 2003 #3 justice41 Programmer May 29, 2002 755 US try using a character class in the substitution instead of '|': Code: s#[/\\]#\\\\#g; jaa Upvote 0 Downvote