Why doesnt this regex match this string in docker automated builds

蓝咒 提交于 2019-12-25 00:08:31

问题


Can someone please help me understand why this Regex:

(^(?!(master|stage|develop)$).*)

Does not match this string:

SBSS-001-WilLTest

In the Branch selector, but it matches just fine in every other regex program I’ve tried:

https://regexr.com/4di8b


回答1:


Unfortunately the regex matcher used doesn't support negative lookaheads (?!).

There is a thread here regarding the decision to not support lookaheads in the default Go regex engine: https://groups.google.com/forum/#!topic/golang-nuts/7qgSDWPIh_E



来源:https://stackoverflow.com/questions/56030134/why-doesnt-this-regex-match-this-string-in-docker-automated-builds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!