Test, validate and match regular expressions
Matches Brazilian CPF (Cadastro de Pessoas Físicas) numbers in two formats: 11 consecutive digits (e.g. 12345678901) or formatted with separators, where each of the first three 3-digit groups is followed by a dash, dot, or slash, and the last 2 digits end the number (e.g. 123.456.789-01). With the gm flags, it validates CPFs line by line across multi-line input. Note it only checks formatting, not the CPF check-digit algorithm.