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
^(\d+|(\d*\.{1}\d{1,2}){1})$
Description
This was written for quick entry on a timecard system. It allows you to create a number with an option of 2 decimal places. I have the digits left of the decimal unrestricted for this example, but in the real world of time keeping, you wouldn't surpass 3 digits on the left of the decimal.
Matches
4000 | 40.25 | .75
Non-Matches
-5.2 | 40.258 | 9,325
Author Rating: The rating for this expression. Ian Suttle
   Displaying page 1 of 1 pages; Items 1 to 1

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