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 2
Title Test Details Cut hierarchy
Expression
.+(?=((\\|\/).+){2})
Description
Get file\folder path and rise in hierarchy by n folders. For example: c:\fold1\fold2\fold3\fold4\fold5 will match c:\fold1\fold2\fold3
Matches
c:\fold1\fold2\fold3\fold4\fold5
Non-Matches
abcd
Author Rating: Not yet rated. nadav
Title Test Details Numbers including scientific format
Expression
^-?[1-9]\d*\.?(\d+([eE][-+]\d+)?)?$
Description
Matches numbers including scintific format
Matches
-23333.1e+24 | 123 | 34.2
Non-Matches
23333.01+24 | +123 | 34.-20
Author Rating: Not yet rated. nadav
   Displaying page 1 of 1 pages; Items 1 to 2

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