I edited $generic_editor:ok and made this change: subst /c[2][3]/(valid(c[2][3]) ? c[2][3] | c[3][3])/g4 That seems to have fixed the problem.