This regex will find all attributes, values, and the equal operator, as well as the white space between attributes. You can use this to extract all attributes to remove all inline styles.