safe regular expressions

This patch adds support for [safe regular expressions](https://github.com/substack/safe-regex) in the search key array to bring the interface closer to `JSONStream.parse()`.