Much better and almost perfect (hmmm, went to use the “u” / underline button and nothing happened. None of the other formatting buttons worked either. I’m using Firefox, btw). Anyway, what didn’t get cleaned up is this:
Note that each has attributes that begin on the next line.
Not a biggie as I can use separate replaces for those, but I guess it’s still an regex puzzle. (My brain hurts from these; it’s been too long since I had to crank out non-trivial regex expressions!)