...

/

REGEX atomic groups `(?>)`

REGEX atomic groups `(?>)`

We'll cover the following...

By definition, a REGEX atomic group is a non-capturing group that exits the group and throws away all alternatives after the first match of the pattern inside the group, so backtracking is disallowed".

While a non-atomic group will allow backtracking, it will still find the first match, then if the matching ahead fails ...