It sounds like you can use one of the Find* methods to locate the substring, then concatenate the string up to that point, the result of one of the Replace* methods for the substring, then the remainder of the string. So, two separate regexp patterns, but it should work.Can you give sample input and output? Maybe someone will have a better suggestion based on the actual need.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/dBbQoxdPW5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.