Related topic: https://discourse.gohugo.io/t/regular-expressions-sub-matching-groups-not-supported/15368 I would like to create functions that parse and return some stuff of HTML like following. ```html <ul> <li><a href="#foo">Foo</a></li> <li><a href="#bar">Bar</a></li> </ul> ``` ```go pattern := `<a.*href="(.+)">(.+)</a>` ``` Result (something like this) ```json [ [ "<a href=\"#foo\">Foo</a>", "#foo" "Foo" ], [ "<a href=\"#bar\">Bar</a>", "#bar" "Bar" ] ] ```