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 Integers, with optional Commas and Sign
Expression
^[+-]?(?(\d{1,3},)(\d{1,3}(,\d{3})+)|\d+)$
Description
Matches integers (no decimal points), that may have an option +/- at the front, and may be grouped by comma every three digits.
Matches
1234 | 1,234 | -45,234 | +678,789
Non-Matches
1234,34 | 456,,123 | jen8,675,309ny
Author Rating: Not yet rated. Aaron
   Displaying page 1 of 1 pages; Items 1 to 1

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