thank you
четверг, 3 сентября 2020 г., 13:13:59 UTC+3 пользователь Brian Candler
написал:
>
> On Thursday, 3 September 2020 10:15:29 UTC+1, Emilius Omeen wrote:
>>
>> pkg "regexp" not have function which allow many group replace, only have
>> ReplaceAllString
>>
>>
>>
> If I just take the examp
pkg "regexp" not have function which allow many group replace, only have
ReplaceAllString
// ReplaceAllString returns a copy of src, replacing matches of the Regexp
// with the replacement string repl. Inside repl, $ signs are interpreted as
// in Expand, so for instance $1 represents the t
Hello
Can sombody suggest way to realize multipattern replace?
93881231212 -> 13881231212
0013881231212 -> 13881231212
+13881231212 -> 13881231212
somthing like this
https://play.golang.org/p/Abeq2-FV7NW
import (
"fmt"
"regexp"
"strings"
)
func main()