Strip arbitrary-length escape sequences

Valid escape sequences changing multiple attributes at once (see test) were failing 
to be stripped.

This pull request fixes the regex to strip these.