If I'm understaing you correctly, the my ( $firstIP, $secondIP ) = /($RE{net}{IPv4})/g in the above code does what you've described.
In reply to Re^3: Using variable to hold regex expression
by Kenosis
in thread Using variable to hold regex expression
by salatconed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |