heading and del regexes bug fixed