Substituting backslash for 2 forward slashes 
Author Message
 Substituting backslash for 2 forward slashes

What regular expression can be used to convert the below source string to the
destination string?

 $source = "c:\users\working\code\bin";
 $dest = "c:\\users\\working\\code\\bin";

Mike Stopfer
Senior Software Engineer
Fisher-Rosemount Systems, Inc.



Sun, 11 Apr 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Changing back slashes to forward slashes

2. problem with slash and backslash : strange behaviour with different PC

3. Slash vs backslash in nt vs 95?

4. Filename seperators - slash or backslash!

5. NT Perl 5 and slash vs. backslash

6. Erroneous Forward Slash in HTML Code by CGI.pm

7. back vs. forward slash

8. Forward- and Backslashes as Pathname Delimiters

9. Substituting a backslashed with two backslashes

10. split and substitute, substitute, substitute

11. Forward slash in Win95 ?? & Perl on Win32

12. why [^\/] didn't work --- How to march non-forward slash?

 

 
Powered by phpBB® Forum Software