Fixing regex for adding semi-colon.