Start to add regex support (bugged).