Updated script with new regex, detects all HTML tags