Fixing up regex for adding semicolons.