in reply to regexp for extracting IP address

The [] construct is a character class. Thus [0-255] matches 0, 1, 2, or 5. This very thing came up in a recent thread.

Caution: Contents may have been coded under pressure.