^(19|20)?[0-9]{6}[- ]?[0-9]{4}$
Currently I use the following pattern for a number pattern.
The pattern works for numbers like this..
20010205-1234 or 010205-1234. The first 4 or 2 digits indicate the year a person is born. And now I need to change this so that one can only enter year between 1900 - 2006. If you for example enter 20070305-1234 it should not be allowed. But 20060305-1234 should be allowed