Docker Community Forums

Share and learn in the Docker community.

Automated Build Regex

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

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

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