我有要从字符串中删除的内容
s:=`Hello! <something>My friend</something>this is some <b>content</b>.`
我希望能够替换<b>content</b>,<something>My friend</something>然后字符串
`Hello! this is some .`
所以基本上,我希望能够删除之间的任何内容 <.*>
但问题是正则表达式匹配,<something>My friend</something> this is some <b>content</b>因为 golang 匹配第一个<到最后一个>
慕田峪4524236
白猪掌柜的
随时随地看视频慕课网APP
相关分类