Set together letters and numbers that are ordinal numbers
问题 The purpose is to remove the space between the numbers and ordinal number abbreviation (st,rd,th,nd). For instance, the following numbers and abbreviations should be together to form 10th, 1st and 133rd: 10 th elementary 1 st grade 133 rd anniversary However, these other examples are not allowed to be set together: abc123 th 33333 rddccc 10 thetree 20 street For this purpose I have came out with the following regex: (?<=[0-9])+\s+(?=(st|nd|rd|th)\b) However it is setting together also the