I need to use a regular expression to validate a string (written in spanish) that represents a full date string... I don't need to validate if the actual string is a valid date (leap years, etc...)
The string looks like this:
23 de septiembre del 2003
23 de septiembre de 1965
If the year is greater then 2000, the the word 'del' is use prior to the year, if not the word 'de' is use...
i did my research and found how to get the first 2 digits:
$pattern = ([0-9]+);
.. then i got lost on how to put it all together...
Help !