Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(\d+)(st|nd|rd)
/
gm
Input 1
1
Liverpool to score 2 goals in 1st 90 minutes
Substitution
nth
Liverpool to score 2 goals in 1st 90 minutes