Update:
I can make this a simpler problem to solve:
I want to figure out what the correct regex would be to substitute any single occurrence of a back slash with two back slashes.
I want to turn this:
vlc.plugin.path = C:\Program Files\JekyllV0.9.2\\VLC_1.0.0\\plugins
into:
vlc.plugin.path = C:\\Program Files\\JekyllV0.9.2\\VLC_1.0.0\\plugins
Original question:
I want to change the following in a file using a Perl Regex:
- all occurrences of a single back slash to two back slashes
- all occurrences of a single forward slash to two back slashes
I tried the following:
perl" -p -i.orig -e "s#\\#\\\\#g" -e "s#/#\\\\#g" %VIDEOLOG_PROPERTIES_FILE%
where %VIDEOLOG_PROPERTIES_FILE% contains:
vlc.plugin.path = C:\Program Files\JekyllV0.9.2/VLC_1.0.0/plugins