Fixing regex (learned how to use .exec()!)