Created
October 29, 2020 19:26
-
-
Save jasoncable/7cac2e5f4934aa2d3c7ffb55b09fa2fd to your computer and use it in GitHub Desktop.
Valid Windows File Name Regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Regex r = new Regex("[<>:\"/|?*~]|\\.\\."); | |
// if it matches, you have bad characters in your Windows file name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment