modified search to accept regex query
search bar accepts regex