导航

Golang 正则表达式Regex相关资料整理

Posted on 2018-02-13 16:14  蝈蝈俊  阅读(1285)  评论(0编辑  收藏  举报

Golang 支持的正在表达式是 https://github.com/google/re2/wiki/Syntax 注意这里提示 NOT SUPPORTED的。

工具

一些测试正则表达式的工具

推荐:

https://regex101.com/

对这个站点的站长采访: http://www.infoq.com/cn/news/2013/01/RegEx101

https://regex-golang.appspot.com/assets/html/index.html 这里的源码在 https://github.com/lukemauldin/rego

之前我一直使用的 RegexBuddy 需要win环境, 对go细节的支持不足, 不推荐。

教程

https://github.com/StefanSchroeder/Golang-Regex-Tutorial/tree/master/zh