add regular expression support

- allow stripping off characters defined in options[:regex]
- add test