Using an Atomic Group
Atomic groups have the format (?>...) with a ?> after the open paren.
Consider the following sample text:
ABC
The regex will attempt to match starting at position 0 of the text, which is before the A in ABC.
If a case-insensitive expression (?>a*)abc were used, ...