Regular Expressions Recursion Recursions are atomic (PCRE)

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

In PCRE, it doesn't trackback after the first match for a recursion is found. So

(?(DEFINE)(aaa|aa|a))(?1)ab

doesn't match

aab

because after it matched aa in the recursion, it never try again to match only a.



Got any Regular Expressions Question?