RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 6 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 6
Title Test Details Pattern Title
Expression
^[+]?\d*$
Description
This re was used for set numbers only! Somente numeros são requeridos!
Matches
0123456789 | 1234 | 1
Non-Matches
1.0?& | a1 | 2a-
Author Rating: Not yet rated. Ramon Durães
Title Test Details Whole Numbers
Expression
^(([1-9]{1}\d{0,2},(\d{3},)*\d{3})|([1-9]{1}\d{0,}))$
Description
Matches whole numbers only, including comma separated. Does not allow leading zeros. To match comma separated numbers only, change "\d{0,}" to "\d{0,2}". To match 0, add "|([0])" before ")$". If you want to use it with Java's regexp match(), remove "^(" and ")$" since they are not needed.
Matches
10 | 1000 | 1,000 | 10,000,000
Non-Matches
01 | 001,000 | 1000,000
Author Rating: The rating for this expression. Robert Gasiorowski
Title Test Details Get one and two numeric digits between 1 and 12 inclusive
Expression
^1?[1-2]$|^[1-9]$|^[1]0$
Description
Get one and two numeric digits between 1 and 12 inclusive, positive numbers only (Zeros are excluded and so is values higher than 12).
Matches
1 | 6 | 12
Non-Matches
-1 | 0 | 13
Author Rating: The rating for this expression. Lars Brandt
Title Test Details Simple pattern match
Expression
^([A-Z0-9]{5})$
Description
Simply match to a combination of 5 characters, using capital letters and numbers only. No special characters or lower case letters.
Matches
AAAA1, 1111A, AW12A
Non-Matches
aAAAA, 1111a, AAAA, AAAAAA
Author Rating: The rating for this expression. Greg Gamble
Title Test Details Indonesian Cell Phone Number Validation
Expression
^((?:\+62|62)|0)[2-9]{1}[0-9]+$
Description
Validate Indonesian "Mobile Numbers Only" with or without the country code, also base on regular phone number format at http://id.wikipedia.org/wiki/Daftar_kode_telepon_di_Indonesia. This regex only allowed characters that accepted by mobile phone/sms gateway only :D
Matches
+62817737669 | 62817737669 | 0817737669 | 6221995500 | 021995500 | 0401998866
Non-Matches
+817737669 | 817737669 | 00817737669 | 0817 737 669 | 0817-737-669 | 021-995500
Author Rating: The rating for this expression. Didi Yudhiarto walnutz.net
Title Test Details To allow non-zero numbers only
Expression
[0-9]*\.?[0-9]*[1-9]
Description
This will validate a match for a number having no zero
Matches
1,99,999,
Non-Matches
10,01,0
Author Rating: Not yet rated. Chandan Kumar
   Displaying page 1 of 1 pages; Items 1 to 6

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