Linux File Path Regular Expression A regular expression to match the path of a file in Linux. /^\/(?:[^/]+\/)*[^/]+$/ Click To Copy Linux File Path Examples: /root/b.ts /root/abc See Also: Windows File Path Regular Expression Facebook Twitter Email