fixes #3 Add regex support