bug fix

translate to regular expression
Merge pull request #226 from johnlui/patch-1

(ja) bug fix