use =~ for regex match operator instead of ^=

re: #1