Test, validate and match regular expressions
Matches one or more digits at the beginning of a line, followed by a single whitespace character. With the multiline flag, ^ anchors to the start of each line rather than the whole string, and global matching finds every occurrence. Useful for parsing numbered lists, line-numbered log files, or detecting lines that begin with a numeric prefix.