Windows Folder Path Regular Expression

Category: URI | Views Total: 24 views

A regular expression to match the path of a directory in Windows.

/^[a-zA-Z]:\\(?:\w+\\?)*$/

Linux Hidden File Path Examples:

  • C:\\Users\\Administrator\\Desktop
  • E:\\m\\

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Leave a Reply