我想替换字符串:
"hello [Jim], I'm [Sam]""hello [MR Jim], I'm [MR Sam]"
"[Greetings] hello [Jim], I'm [Sam]""[Greetings] hello [MR Jim], I'm [MR Sam]"
我怎样才能通过 golang 正则表达式做到这一点?
re := regexp.MustCompile(`hello [(\w+)], I'm [(\w+)]`)
非常感谢!
我想替换字符串:
"hello [Jim], I'm [Sam]""hello [MR Jim], I'm [MR Sam]"
"[Greetings] hello [Jim], I'm [Sam]""[Greetings] hello [MR Jim], I'm [MR Sam]"
我怎样才能通过 golang 正则表达式做到这一点?
re := regexp.MustCompile(`hello [(\w+)], I'm [(\w+)]`)
非常感谢!