Test, validate and match regular expressions
Matches content enclosed in curly braces, capturing everything between { and } in group 1, including any leading or trailing line breaks. The lazy .+? ensures the shortest match up to the first closing brace, while (\r?\n)* handles both Windows (\r\n) and Unix (\n) line endings just inside the braces. Useful for extracting single-line block values from config files, templates, or placeholder syntax.