re.match to re.search

Convert to re.search to eliminate the restriction on only matching the
beginning of the string
Merge pull request #26 from hackop/ticket_2819

re.match to re.search