Setting up a regex makes us depend on pcre, and it's a real major pain to set that up in C-land. It's probably over-bloated as well for this check. However, I can probably remove the dot count check as anything more than one dot is fine.