I think I've been staring at php too long, I cannot for the life of me figure out why this doesn't work.
I'm trying to match phone numbers with this format (555.555.5555).
if (preg_match("[0-9]{3}.[0-9]{3}.[0-9]{4}", "555.555.5555", $matches)){
echo matches[0];
}
My first thought is I wonder if the . need escaped first or I am just missing something incredibly simple