in reply to Extracting IP address from large text file.
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...'.
|
|---|