Regex Generator — illustrative example INPUT JavaScript pattern for exactly three uppercase ASCII letters followed by two digits. RESULT ^[A-Z]{3}[0-9]{2}$ matches ABC12 and rejects AB12, abc12 and ABC123. REVIEW A regex needs both matching and nonmatching examples. Specify the runtime and whether the pattern must match a whole value or a substring. This is a teaching example, not a live execution record.