my $rt = [ [AM => [(qr/\b/) x 2]], [japhy1 => [qr/(?:(?=\w)(? [qr/(?(?=\w)(? [(qr/(?:(?=\w)(?[0] . (' ' x (6 - length $_->[0])); # proposer my ($lb, $rb) = @{$_->[1]}; (my $text = "this,that & this, that & this ,that & this , that this") =~ s/$lb($thing)$rb/>>$1<