Fix infinite loop issue with zero width match(#29)
Search only when regexp is valid
Merge pull request #30 from syohex/fix-zero-width-match

Fix zero width match