Page 1 of 1

safe character set for filenames windows and linux server?

PostPosted: 19. July 2012 05:15
by jmichae3
I would like to see as a regex (maybe something like a character class) a list of characters for filenames for html documents which will work on most any windows and linux server.

one of my questions is about using commas and spaces. my understanding is that those should be avoided in the general case, along with punctuation and control charracters except ._- so a regex I would be thinking of would look like [A-Za-z0-9_\.-]

Re: safe character set for filenames windows and linux serve

PostPosted: 19. July 2012 05:33
by Altrea
To be as safe as possible, just use [A-Za-z0-9_]
to prevent case sensitive issues better use [a-z0-9_]