- or download this
sub regex2 { my $pat = shift ;
eval q%sub {
...
}
}%;
}
- or download this
my $foobar = regex2 '\bfoo\W+(?:\w+\W+){0,6}bar\b' ;
- or download this
my $ugly_and_evil = regex2 '\bteam(?!\W+(\w+\W+){0,5}management\b)'
+ ;
- or download this
my $broken_and_wrong = regex2 '(?<!\bmanagement\W+(\w+\W+){0,5})tea
+m' ;
- or download this
my $inherently_evil = regex2
'(?<!management)
...
team\b
(?!\W+(\w+\W+){0,5}management)
';