Use a regex when checking for external urls. It's concise and DRY, less prone to...