Test, validate and match regular expressions
Extracts article references from Brazilian legal documents, capturing the article number, optional section (§), and the corresponding legal code or statute. Matches common abbreviations like CPC, CPP, CP, full names like 'Código de Processo Penal', 'Constituição da República', and law number formats like 12.345/2020. Useful for parsing legal citations in Portuguese-language legal texts and documents.