in reply to Count the number of matched characters
() = substr($_,-17) =~ / A (?{ print 'yes' if $::i++>12}) /xg; [download]