Also:
>perl -wMstrict - "my $str = 'here a matchme there a matchmoe too'; ;; if (my @matches = $str =~ m{ (matchmo?e) }xmsg) { print qq{matched @matches}; } " matched matchme matchmoe
BTW: I assume you're aware that the regex in the OP matches things like '999.999.999...'.
In reply to Re: Extracting IP address from large text file.
by AnomalousMonk
in thread Extracting IP address from large text file.
by Monkomatic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |