What ( ) does is that whenever it matches the inner pattern, it keeps it in memory for further reference in code.
(?: ) allows to have a complex inner pattern with OR cases without keeping the matched content in memory. That's what mean "non-capturing" for (?:). Also www.regular-expressions.info has a really nice reference on regex and also tells you which engine supports which feature. Richard Lavoie > On 2014-09-22, at 05:03, Jan Seidel <[email protected]> wrote: > > Last but not least. > Looks like Jenkins adheres to Java Regex, even if I sometimes doubted it. > > "(?:X) X, as a non-capturing group" > Does this mean ... "don't jump on this pattern"? > Sorry, I'm no developer :) > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
