An interesting version is:
my $fail; if ($str =~ /\b(?>(\d{1,3})(??{$fail ||= $1 > 255})\.?){4}/ && ! $ +fail) { # matched ... }
In reply to Re: regular expression assistance
by GrandFather
in thread regular expression assistance
by notasaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |