First attempt at reg ex - work in progress - can't quite get it to work absolutely correctly so any comments would be great.
Matches everything as it should apart from the last part of the IP, i.e. allows http://255.255.255.999 (which obviously it shouldn't but ran out of inspiration) so any corrections humbly and gratefully accepted.
TLD check is not complete - just added most of the major ones but easy to dd to if you want to.
BTW - you'll need to replace the & with just the ampersand in the reg ex