@duponin I made it myself. And you're right about one digit because the current one won't match IP addresses with one digit at the end like 192.168.1.1
but ideally it has to validate IPv[4 6] addresses to create a valid href to an IP address, in parallel to domain check
But it may weight a lot parser