URL-REGEX-IMPROVEMENT-TO-ALLOAK-LOCALHOST-URL

(?:^|\s)((https?:\/\/)?(?:localhost|[\w-]+(?:\.[\w-]+)+)(:\d+)?(\/\S*)?)
DreamCoder