add regex query entity processing