added search functionality for library (aka, regex search)