in reply to
Pattern match location finding
perl -e '$p = 0;while ( ( $p = index( "AABAABBBB", "B", $p + 1 ) ) >= 0 ) { push @pos, $p + 1} print "@pos";'
Boris
Comment on
Re: Pattern match location finding
Download
Code
In Section
Seekers of Perl Wisdom