
怎么样使用
^(?!.*master).*$
作为分支说明符。此正则表达式表示所有不匹配master的分支。
分解:
^(?!.*master).*$^ ---> beginning of string (?! ) ---> negative lookahead find all that doesnt match .*---> zero or more of 'any' character master ---> should not match master .*$ ---> will match anything to the end of string
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)