まとめ
・goの標準ライブラリregexpは先読みに対応していない
・先読みのアルゴリズムは指数関数的な実行時間を要する
参考
- https://golang.org/s/re2syntax
- https://qiita.com/ryosuketter/items/bf0d7bfc413ab05723a7
- https://www.akenotsuki.com/misc/srell/relibs.html
- https://swtch.com/~rsc/regexp/regexp1.html
- https://groups.google.com/g/re2j-discuss/c/02Wzz-v2Flo
- https://zenn.dev/usamik26/articles/regex-lookahead
- https://ja.javascript.info/regexp-quantifiers