add better regex support.