$ perl -le'my $x = "A B C\nA B D\n"; print "exactly two matches" if $x + =~ /^ [^A]* A [^A]* A [^A]* $/xg' exactly two matches
In reply to Re: most terse regex match count
by jwkrahn
in thread most terse regex match count
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |