Phew, regexes will never be fun to look at!
Well, since javascript regexes don't support if/else conditions, maybe this post is helpful https://stackoverflow.com/questions/32852857/javascript-conditional-regular-expression-if-then-else
Stupid question: have you talked to a dev to fix this on the w...