Regular Expressions 101

Library entries

remove ordinals

Vote

1

Regular Expression
pcre

/
^(((1)st?|(2)nd?|(3)rd?|([4-9])th?)|(([0-9]*)(1[0-9])th?)|(([0-9]*[02-9])((1)st?|(2)nd?|(3)rd?|([04-9])th?)))$
/
igm

Description

Loading markdown...
Submitted by missinglink - 6 years ago