One key things to understand here is the possibility to use insensitive case, since you have the same word in both uppercase and lowercase. As for the rest, it’s basic OR operaiton.
/smoke(s?)-(test|\d{1})-app-([0-9A-Fa-f\-]{36}|[0-9A-Fa-f\-]{16})/gmi
Note that the i
flag is important here.
I’ve created a regex101 if you wish to test more cases
P.S.
I did this out of pure love for regexes, but we would have appreciated if you tried yourself first.
0
solved How can I combine these two regex expression to one?