Dr Rockstar ♫ ㉆<p><a href="https://social.vivaldi.net/tags/regex" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>regex</span></a> <a href="https://social.vivaldi.net/tags/question" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>question</span></a></p><p>I was going through some HTML markup/ content where my <h1>,<hx> tags have no anchors/ ID's. pain in the butt to do that manually if i want anchors, It occurred to me: why don't I just process the markup and use the &<a href="https://social.vivaldi.net/tags/x003C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>x003C</span></a>;h1&<a href="https://social.vivaldi.net/tags/x003e" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>x003e</span></a>; (..contents ...) &<a href="https://social.vivaldi.net/tags/x003C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>x003C</span></a>;/h1&<a href="https://social.vivaldi.net/tags/x003e" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>x003e</span></a>;<br>but the (...contents...) atom needs filtering. E.g. "this just in", maybe I want "this_just_in"</p><p>That's not really possible w/ <a href="https://social.vivaldi.net/tags/PCRE" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PCRE</span></a> is it?</p><p>Maybe this is something <a href="https://social.vivaldi.net/tags/sed" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sed</span></a> can do? Im not super fmlr w/ all gnutils</p>