Regular Expressions 101

  • Python
  • Match
1

Regular Expression

r"
\d+(?:st|nd|rd|th)
"

Description

Matches ordinal numbers

Submitted by D