Fix RegExp boundaries for private and loopback addresses