Linux Folder Path Regular Expression A regular expression to match the path of a directory in Linux. /^\/(?:[^/]+\/)*$/ Click To Copy Linux Hidden File Path Examples: /usr/ad/dd/ / /root/ See Also: Windows Folder Path Regular Expression Regex To Check If Is A Valid Folder Name Facebook Twitter Email