if ($regex($left($1,1),/^[+-]$/)) && ($regex($right($1,1),/^[qaovh]$/)) {
replace with
$regex($1,/^[+-][qaovh]$/)