switching regexs