Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(\d{1,3}'(\d{3}')*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{3})?)$
|
Description |
This regex match numeric data in the following format: thousands are separated by (') apostrophe, decimal places are separated by dot (.) Maximum three decimal places are not required. It's easy to change to other separators as well.
|
Matches |
1'235.140 | 1'222'333.120 | 456
|
Non-Matches |
1234.500 | 78'45.123 | 123,0012
|
Author |
Rating:
Not yet rated.
Dalibor Kalna
|
Title |
Test
Details
Pattern Title
|
Expression |
^((0?[1-9]|[12][1-9]|3[01])\.(0?[13578]|1[02])\.20[0-9]{2}|(0?[1-9]|[12][1-9]|30)\.(0?[13456789]|1[012])\.20[0-9]{2}|(0?[1-9]|1[1-9]|2[0-8])\.(0?[123456789]|1[012])\.20[0-9]{2}|(0?[1-9]|[12][1-9])\.(0?[123456789]|1[012])\.20(00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96))$
|
Description |
Fully functional date validator in format dd.MM.yyyy
Works only within range of years 2000-2099 !
It allows leading zeros but does not require them. The last year pattern (enumeration) is not very clever but I will improve it, if needed.
|
Matches |
31.01.2002 | 29.2.2004 | 09.02.2005
|
Non-Matches |
31.11.2002 | 29.2.2002 | 33.06.2000
|
Author |
Rating:
Dalibor Kalna
|
Displaying page
of
pages;
Items to