Fixed #1. Added search method that requires a regular expression
Added search test. Related to #1