Switch regex mode