RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Absolute File Path in UNIX / LINUX
Expression
^((?!.*//.*)(?!.*/ .*)/{1}([^\\(){}:\*\?<>\|\"\'])+\.(csv|jpg|txt|pdf|dat|xls|doc))$
Description
This will match with all absolute file paths in Unix/Linux. The extensions added are csv|jpg|txt|pdf|dat|xls|doc. Can be customized for specific extensions.
Matches
/usr/local/data/userdata.xls, /home/userdata.doc, /accounts.txt
Non-Matches
//usr/local/data/userdata.xls, //usr/local/,/usr/local/ data/users.txt
Author Rating: The rating for this expression. Bijaya Kumar Naik
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials