I do take exception to being called a “dumb shit” in public under any circumstance. I would have expected this community of presumably civilized professionals to have dealt with the problem of hazing one particular Monk about a decade ago. It baffles me why this community does not see this as a problem. There are occasional comments by others which show that others are aware of what is happening, but nothing gets done.
With regard to the present topic: I see no reason to try to tackle this requirement using “one” regular expression. Especially if it is very probable that the string does
contain an IP-address within a parenthesized group, it makes perfect sense to me to take the approach suggested by Anonymous Monk:
first scan for parenthesized groups which have at least one digit in them. That doesn’t sound like “dumb shit” to me.