in reply to Matching an IP address

not the absolute greatest reduction, but:
((?:\d+\.){3}\d+)
The IP is still stored in $1, since the inner parentheses has the ?: directive so that value isnt captured, but the match to the outer parentheses goes in $1