Im using preg_match_all to check dates and words that starts with capital, the problem is on the dates because on the regex tester its telling me that this regex is fine but in the php script its not doing it correctly, my pattern is this:
$pattern = "#(((0[1-9]|[12][0-9]|3[01])([\/\.\\\-])((0[1-9]|1[012])\11)?)(\d\d\d\d|\d\d))+|([A-Z][a-z]+)(\s[A-Z][a-z]+)*#";
and I want it to match this: "12.10.1990" as well as "12.10.90"
thanks for your help!