surround the regex to match the IP with parens, and then use the $1 variable to grab what was matchedm/(regex to match IP)/; print $1;
In reply to Re: Getting an IP out of a string
by raflach
in thread Getting an IP out of a string
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |