If the regex expression does not match then matches.count would be 0 (and then the openURL method would return NO).