 <h1>Remove drive letter:</h1> <pre><code>s/^\w\://; </code></pre> <h1>Convert / to space:</h1> <pre><code>s/\// /g; </code></pre> <p>Do you want to cut off the leading "/"? Use this RegEx as the first one:</p> <pre><code>s/^\w\:\///; </code></pre>