Fix regex
Merge pull request #862 from kotarou3/crashfix

Fix regex