The proper regular expression to match all UNIX paths is: [^\0]+
That is, one or more characters that are not a NUL.
More Related Contents:
- Regex Last occurrence?
- Regex to validate date formats dd/mm/YYYY, dd-mm-YYYY, dd.mm.YYYY, dd mmm YYYY, dd-mmm-YYYY, dd/mmm/YYYY, dd.mmm.YYYY with Leap Year Support
- Regular expression for floating point numbers
- RegEx for matching UK Postcodes
- Can’t escape the backslash with regex?
- Regex to match URL
- Regex (grep) for multi-line search needed [duplicate]
- Extracting a string between other two strings in R
- Regular expression for matching HH:MM time format
- What is the difference between square brackets and parentheses in a regex?
- isnumeric() with PostgreSQL
- How do I use regular expressions in bash scripts?
- Insert commas into number string
- regex to match a word with unique (non-repeating) characters
- Is it possible to define a pattern and reuse it to capture multiple groups?
- How can I make my match non greedy in vim?
- Regular expression to match last number in a string
- What are the differences between glob-style patterns and regular expressions?
- Regex for comments in strings, strings in comments, etc
- Matching math expression with regular expression?
- How do I handle special characters in a Perl regex?
- Can a URL contain a semicolon and still be valid?
- How can I find the location of a regex match in Perl?
- How do I use a regex in a shell script?
- How to define a regex-matched string type in Typescript?
- Regex for Mobile Number Validation
- Regex for a valid 32-bit signed integer
- Extended regular expressions (ERE) for .gitignore
- Bash – Regex for HTML contents
- How to validate email id in angularJs using ng-pattern