in reply to regular expression assistance
An interesting version is:
my $fail; if ($str =~ /\b(?>(\d{1,3})(??{$fail ||= $1 > 255})\.?){4}/ && ! $ +fail) { # matched ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regular expression assistance
by chip (Curate) on May 10, 2008 at 00:43 UTC | |
by GrandFather (Saint) on May 10, 2008 at 01:35 UTC |