I\'m wondering if this is the best way to match a string that starts with a private IP address (Perl-style Regex):
(^127\\.0\\.0\\.1)|(^192\\.168)|(^10\\.)|(
FWIW this pattern was over 10% faster using pattern.matcher:
pattern.matcher
^1((0)|(92\\.168)|(72\\.((1[6-9])|(2[0-9])|(3[0-1])))|(27))\\.