use regex to better headings modification