switch find ordering and regextype