Comman regular expression patterns

less than 1 minute read

\d{4,}
  • \d: matches a digit (equal to [0-9])
  • {4,} Quantifier: matches between 4 and unlimited times, as many times as possible, giving back as needed (greedy)

Comments