If you're looking for a single digit followed by a capital letter (this is a wild guess, since you might just be looking for a literal '2L' anywhere in the string - it's rather hard to tell), then this simple regex will do:
while (<DATA>){ chomp; print "$1\n" if /(\d[A-Z])/; }
In reply to Re: One regex construct to handle multiple string types
by oko1
in thread One regex construct to handle multiple string types
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |