What's the meaning of "?>" in the regular expression

(Thorzhang) #1

Below is a regular expression In grok-patterns (url: https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns), I don't know the meanings of "?>".

YEAR (?>\d\d){1,2}
Can anyone help me, Thanks.

(Faulander) #2

This should get you going: https://www.regular-expressions.info/atomic.html

(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.