Not that I'm aware of. But you can always DIY:
$ perl -E 'grep { /^..(A|B)./ and push @f, $1 } @ARGV; say @f' xxBxx y +yAyy BA $
🦛
In reply to Re: do $n exist in grep?
by hippo
in thread do $n exist in grep?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |