added regex search functionality

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>
bugfix + added tests for regex search

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>
Merge pull request #1 from woutervroege/master

added regex search functionality