improve anonymous regex

Bugfixes mistaking users with username like foo0123456789 for ip address (anonymous users).

IPv6 support should be added and perhaps the IP regex should be fine tuned.