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 Pattern Title
Expression
/[^/]+$
Description
Very easy expression to get the file name from a path. I couldn't find it so I wrote it and now I post it here! Hope it could help.
Matches
/home/pietro/myfile.txt | /home/pietro/myfile
Non-Matches
/home/pietro/mydir/
Author Rating: Not yet rated. Pietro Bonfa
   Displaying page 1 of 1 pages; Items 1 to 1

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