I understand. And I think it is a good thing to check if the filenames are supplied by (especially novice) users.
If they enter a filename "temp\fred.txt", you could end creating fred.txt in the temp subdirectory rather than their expectation on a file called temp\fred.txt in \.
In reply to Re^6: Regular expression to check for invalid file name characters
by BrowserUk
in thread Regular expression to check for invalid file name characters
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |