Title |
Test
Find
Linux Path Verify
|
Expression |
^/{1}(((/{1}\.{1})?[a-zA-Z0-9 ]+/?)+(\.{1}[a-zA-Z0-9]{2,4})?)$ |
Description |
This expressions was written for C#. Matches all valid Linux absolute paths (files or folders). Will not work for relative paths that do not begin with a /, Also will only match files that have extensions consisting of 2, 3, or 4 characters. Currently fails with _ . or - in the path, this will be updated at some point. |
Matches |
/mnt/share/ | /home/.BASH | /mnt/share/pic.jpeg | /mnt/share/install.sh |
Non-Matches |
mnt/share | //mnt///share// | /mnt/share/install.installer | /home\user |
Author |
Rating:
Brandon Vasquez
|
Source |
|
Your Rating |
|
Title: =D
Name: Bill
Date: 4/8/2009 5:17:35 PM
Comment:
should also mention it will only match files that have extensions consisting of 2, 3, or 4 characters
Title: =D
Name: Bill
Date: 4/8/2009 5:15:51 PM
Comment:
should also mention it will only match files that have extensions consisting of 2, 3, or 4 characters
Title: =D
Name: Bill
Date: 4/8/2009 5:14:42 PM
Comment:
should also mention it will only match files that have extensions consisting of 2, 3, or 4 characters