add regex support