Test, validate and match regular expressions
This regex parses Spanish-language legal document headers, matching court citations and party representations. It captures court names (followed by colons), party names, attorney information after 'con' (Spanish for 'with'), and various legal identifiers or case numbers. The pattern handles two document formats with multiline support for structured legal filings.