David Smith

David Smith

  • NA
  • 2k
  • 0

Regex to Validate a filename

Aug 5 2013 5:01 PM
How to validate if the string has a filename along with the path review below.

I am looking for a regex that validates if the string has a filename along with the path. review below.


Example:

C:\temp\ Incorrect because of ";" Incorrect

C:\temp\example.txt
  Correct


Answers (3)