Ok, I hate regular expressions with a white hot passion. Despite this, I am desperatly TRYING to learn them. In my attempt to do so, I am trying to write one to validate a date.
I have a date in the format of mm/dd/yyyy. I want to use this within a preg_match. So I tried what I thought it would be:
preg_match('/[0-9]\/[0-9]\/[0-9]/', $date);
However, this did not work, obviously. Any idea what I am doing wrong?