Test, validate and match regular expressions
Matches balanced curly-brace blocks with arbitrary nesting using PCRE recursion ((?R)), capturing the inner content without the outer braces. Designed for parsing PGN chess notation, where move annotations/comments are enclosed in braces and may themselves contain nested brace comments. Use with the global flag to extract every comment from a game record.