$string =~ s|((?:(?!).)*)|my $item = $1; my $no = 1; $item =~ s//''/egs;"$item"|egs;