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 4
Title Test Details Numeric Accept
Expression
^-?\d+([.,]?\d+)?$
Description
It just accepts negative and positive numeric entries. Dot (.) or comma (,) signs accepted only once.
Matches
43 | -43 | 43.56 | -43.56 | 43,56 | -43,56
Non-Matches
ABC | A43 | 43A | 43.A3 | -43.A3 | 43.,56 | 43. | 43, | ,56 | .56
Author Rating: Not yet rated. Mehmet Cakoglu
Title Test Details Positive Numeric Accept
Expression
^\d+([.,]?\d+)?$
Description
It just accepts only positive numbers. Also accepts Dot (.) and comma (,) signs only once.
Matches
43 | 43.56 | 43,56
Non-Matches
ABC | A43 | 43A | 43.A3 | 43. | 43, | ,56 | .56
Author Rating: Not yet rated. Mehmet Cakoglu
Title Test Details Just Integer
Expression
^-?\d+([^.,])?$
Description
Accepts positive and negative integers.
Matches
34 | -34 | 1 | -1 | 1000000000 | -1000000000
Non-Matches
34.5 | -34.5 | 34,5 | -34,5 | 34. | 34, | .5 | ,5
Author Rating: Not yet rated. Mehmet Cakoglu
Title Test Details Just Positive Integer
Expression
^\d+([^.,])?$
Description
Accepts positive integers.
Matches
34 | 1 | 1000000000
Non-Matches
-34 | -1 | -1000000000 | 34.5 | -34.5 | 34,5 | -34,5 | 34. | 34, | .5 | ,5
Author Rating: Not yet rated. Mehmet Cakoglu
   Displaying page 1 of 1 pages; Items 1 to 4

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