title: How can I recognize Windows file paths in a string in Perl?
body: <p>I have been doing some searching for a regex that can be used as a rule to disallow users entering windows file paths without escaping the "\".  So far I have found this expression </p>
  
  <blockquote>
    <p>[^\\]*$  </p>
  </blockquote>
  
  <p>However, this fails for the following:  </p>
  
  <blockquote>
    <p>C:\\Program Files\\testing  </p>
  </blockquote>
  
  <p>By fails I mean that it does not validate this string.  Any help would be greatly appreciated, and yes I am bound to using regex.</p>