Test, validate and match regular expressions
This regex validates a SNILS (Russian individual insurance account number, Страховой номер индивидуального лицевого счёта) in the standard formatted style XXX-XXX-XXX XX, where nine digits are grouped by hyphens and followed by a two-digit control number after a space. Anchored with ^ and $ in multiline mode, it matches complete lines within multi-line input, and the global flag allows finding all occurrences. It checks only the format and does not verify the SNILS checksum.