What is the most correct regular expression for a UNIX file path?

The proper regular expression to match all UNIX paths is: [^\0]+

That is, one or more characters that are not a NUL.

Leave a Comment