Test, validate and match regular expressions
This regex captures OTP (One-Time Password) codes from 4 to 8 digits in sentences. It matches digits that are either preceded by the word 'is' or appear at the beginning of a line followed by ' is'. Useful for extracting verification codes from SMS messages or emails.