This version of the regexp splits v4, v6 and hostname matches and succeeds all tests.