Test, validate and match regular expressions
This PCRE regex extracts a company name and its Central Index Key (CIK) from SEC EDGAR text documents. It matches a line containing the company name followed by text in parentheses, then captures the numeric CIK found on the subsequent line. This is particularly useful for financial data processing, web scraping of SEC filings, and automated document parsing.