Atomic groups clarity
Consider this regex. a*b This will fail in case of aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac This takes 67 steps in debugger to fail. Now consider this regex. (?>a*)b This will fail in case of aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac This takes 133 steps in debugger to fail. And lastly this regex: a*+b (a variant of atomic group) This will fail in case of aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac This takes 67 steps in debugger to fail. When I check the benchmark atomic group (?>a*)b performs 179% faster. Now atomic groups disable backtracking. So performance in match is good. But why are the number of steps more? Can