Docker Community Forums

Share and learn in the Docker community.

Automated Build Regex

(Wjdavis5) #1

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

(Dockobe) #2

Not really docker related but $ stands for “end of tested string”.

^(?!master|stage|develop).* will match for sure.