Fixing regex bug

This is much better. :D