Regex! Fancy! This is certainly a fine way of doing it, and regex are probably what you'd want to use to get a really good output with regard to punctuation. Nice work.