title: Regex for file path validation in javascript
body: <p>I can't seem to find a Regular Expression for JavaScript that will test for the following cases:</p>
  
  <ul>
  <li>c:\temp</li>
  <li>D:\directoryname\testing\</li>
  <li>\john-desktop\tempdir\</li>
  </ul>
  
  <p>You can see what I am going for.  I just need it to validate a file path.  But it seems like all the expressions I have found don't work for JavaScript.</p>