求一个HTML正则公式,谢谢

admin87 · · 1218 次点击
```go re := regexp.MustCompile(`\<[\S\s]+?">`) ```
#3
更多评论
你用了懒惰模式,改为: ```go re,_ = regexp.Compile("\<[\S\s]+\>") ```
#1
如果<meta name="author" content="polaris <polaris@studygolang.com>"> 后边还有HTML标签呢?
#2