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((?:\d+\.){3}\d+)
In reply to Re: Regex redux
by shemp
in thread Matching an IP address
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |