Test, validate and match regular expressions
Matches sequences of 1 to 5 consecutive digits (0-9). With the global flag, it finds all such occurrences in a text, and with multiline, it applies the search independently on each line. Useful for extracting or validating short numeric codes like IDs, zip codes, or quantity values.