I’m trying to use findRE
to find content in the .Title
variable that’s between this symbol:
`
My current code is:
{{ .Title | findRE "\`.*?\`" }}
I’ve validated this with a golang online expression tester (here) and it works there. Hugo, however, generates the “invalid syntax” error.
I’ve checked the re2 syntax rules, and looked at the docs (both sites), but can’t figure out where I go wrong. I also played around with the Go playground example that moorereason shared in an earlier thread but that also didn’t move me closer towards a solution.