Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Regex to replace a drive letter

$
0
0

Hello

I've got the path L:\Program Files\folder1\file.txt

I need to replace the L: drive to C:  or what ever drive letter it may be to C:

How do I do that with Regular expressions?

Thanks


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>