Back to Library
Files

Linux/Unix Path

Matches an absolute path on Linux/Unix systems.

Pattern
^\/(?:[^\/]+\/?)*$

Test Cases

/usr/local/bin Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor