Test, validate and match regular expressions
Matches a header block in a Brazilian Bovespa trading note (nota de corretagem), capturing the note number, folha number, trading date, and brokerage name. The regex is useful for extracting structured trade metadata from text or PDF-derived content, enabling automated processing of financial documents.