Add term regex option to 2i queries