GREP Library / Ordinal suffixes after a number
GREP stylesInDesign GREP

Ordinal suffixes after a number

GREP style with a superscript character style. The word boundary keeps it off words like “1stop”.

Find
Beforethe 2nd and 23rd
(?<=\d)(?:st|nd|rd|th)\b
Change to
Afterthe 2nd and 23rd
Leave empty and apply a style in Change Format, or use as a GREP style
Regular space

Run all of these at once with the free GREP Batch Processor.

All GREPs in the library · Learn GREP · Special characters