Hello, I would like to include an escaped asterisk in my .toml file, which I will feed as a pattern to replaceRE. Is this possible?
Thanks!
Hello, I would like to include an escaped asterisk in my .toml file, which I will feed as a pattern to replaceRE. Is this possible?
Thanks!
site config
[params]
pattern = '\*.*?\*'
template
{{ $s := "Able *was* I ere I *saw* Elba." }}
{{ $r := findRE site.Params.pattern $s }}
{{ $r | warnf "%#v" }} --> []string{"*was*", "*saw*"}
Thank you!
I had tried ", """, and even `.
Yourself and Bjørn are like Gods that deliver us with superfast software and auspicious regex patterns.