Golang 支持的正在表达式是 https://github.com/google/re2/wiki/Syntax 注意这里提示 NOT SUPPORTED的。html
一些测试正则表达式的工具git
推荐:github
https://regex101.com/
golang
https://regex-golang.appspot.com/assets/html/index.html 这里的源码在 https://github.com/lukemauldin/rego
正则表达式
以前我一直使用的 RegexBuddy 须要win环境, 对go细节的支持不足, 不推荐。app
https://github.com/StefanSchroeder/Golang-Regex-Tutorial/tree/master/zh
工具