Test, validate and match regular expressions
Matches lines that contain only digits (0-9) from start to end. With the multiline flag, it checks each line individually, so it's useful for validating that every line in a text file is a pure numeric string with no spaces, signs, or other characters. Common in data cleaning, form validation, and parsing numeric input.