Fixing bad regex