JBEHAVE-924 - Faster regex in pattern variant bulder