Masterminds / sprig

Useful template functions for Go templates.
http://masterminds.github.io/sprig/
MIT License
4.24k stars 434 forks source link

New function: regexFindSubmatch #299

Open chris-garrett opened 3 years ago

chris-garrett commented 3 years ago

First off, thank you for this library! I use it every day via the go-task project.

I have been migrating projects from rake to go-task and one of the things I found missing was the ability to get regex captures. I have added this functionality in this PR: #298

Cheers!

steve-todorov commented 3 months ago

Any updates on this? I'm using ArgoCD and waned to be able to do find a "case number" from the branch. This seems like exactly the function that would provide it. :)