modify regexp on replacement to fix #240
Merge pull request #275 from HondaDai/fix-bug-240

modify regexp on replacement to fix #240