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 Path & Filename in realtive path
Expression
^(((\.\.){1}/)*|(/){1})?(([a-zA-Z0-9]*)/)*([a-zA-Z0-9]*)+([.jpg]|[.gif])+$
Description
Nice for checking local filesystem relative pathing. I used it for testing in php scripts that work with images.
Matches
../../pictures/products/image.gif; ../image.jpg; image.gif
Non-Matches
http://www.domain.de/image.gif; ../../badscript.php;
Author Rating: The rating for this expression. Marcus
   Displaying page 1 of 1 pages; Items 1 to 1

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