URL-REGEX-IMPROVENSI-TO-ALOW-LOCALHOST-URL

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