Displaying page
of
pages;
Items to
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:
Robert Gasiorowski
|
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:
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:
Didi Yudhiarto walnutz.net
|
Displaying page
of
pages;
Items to