#!/usr/bin/perl my $string = 'LPNTGVTNNAYMPLLGIIGLVTSFSLLGLXKARRD'; while( $string =~ /([KR])/g ) { print "$1 at ", pos($string), $/; } __END__ K at 31 R at 33 R at 34
In reply to Re: match all instances?
by rhesa
in thread match all instances?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |