TRANSLATE bool USING ' XX '.
bool = bool + 1 mod 2.
TRANSLATE wlv_pat USING '*%+_'.
s = replace( val = s regex = '.$' with = '' ).