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 Package Name Validator
Expression
^([a-z]+?\.[a-z]+)+\%$
Description
This can be used to validate package names ending with %. If % is not needed ^([a-z]+?\.[a-z]+)+. (.....) can be used to make that part common. "+" is for more than one number of occurences. "?" is for one "." (dot) charactor
Matches
aaa.bbb% a.b.cccc.dd%
Non-Matches
aa% aaa.% aaa.bbb. aaa.bbb
Author Rating: The rating for this expression. Dilip Nilanka Manathunga
Title Test Details Natural Number with or without preceding zeros
Expression
^[0]*?[1-9]\d*\.?[0]*$
Description
This matches Natural numbers with or without preceding zeros. ^[0]+?[1-9]\d*\.?[0]*$ this states there should be atleast one zero
Matches
090, 089, 01 | 01.00 | 08.0 | 000056 | 0054.0 | 00055.000
Non-Matches
0 | 0.00 | -1
Author Rating: The rating for this expression. Dilip Nilanka Manathunga
   Displaying page 1 of 1 pages; Items 1 to 2

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