This question already has an answer here:
- Regex with replace in Golang 1 answer
I want to use regex group to replace string in
golang, just like as follow in
re.sub(r"(\d.*?)[a-z]+(\d.*?)", r"\1 \2", "123abc123") # python code
So how do I implement this in golang?