Test, validate and match regular expressions
This regex matches a number consisting of one or more digits, optionally followed by an English ordinal suffix (st, nd, rd, th). It is designed to capture the numeric part of addresses or ordered items, ignoring the suffix. Useful for parsing street numbers like '123rd' or '45th' to extract the integer value.