##
# Get all the positions
my @positions;
push @positions, pos($str)-1 while $str =~ m{\*}g;
# Yields ( 4, 12 );
####
# Get all the asterisk-separated pieces
my @pieces = split "\*", $str;
my $pos = length $pieces[0];
####
# Just get the first piece
my ( $first_piece ) = ( $str =~ m{ \A ( [^*]* ) }x );
my $pos = length $first_piece;