Added basic regex support.