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 Positive unsigned number with a decimal
Expression
^([1-9]+[0-9]*|\d*[.,]\d)$
Description
This RegEx allow every positive number except 0 with a limit of 1 decimal. You can use coma or dot.
Matches
51 | 0.5 | 14,7
Non-Matches
0 | .5 | 1.54 | 015 | ,4 | -1.5
Author Rating: Not yet rated. JLN SK8
   Displaying page 1 of 1 pages; Items 1 to 1

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