Skip to main content
GuiG
Participant
June 12, 2018
Answered

Find/Change GREP

  • June 12, 2018
  • 3 replies
  • 924 views

Hello,

From the Find/Change window and in the GREP tab, I would like to be able to search for 1st and replace with 1st. In fact I'd like to put in exposing the st but not the 1.

I hope you understood me    

Thank you in advance for your help,

Guig

This topic has been closed for replies.
Correct answer vinny38

You could even use a grep style to apply superscript to all ordinals:

(?<=\d)(st|nd|rd|th)\b

3 replies

Erica Gamet
Inspiring
July 5, 2018

Did either of these solutions work for you? It's helpful to hear back if the solution worked (or not). I can't speak for others, but I know that GREP is something that takes me a while to craft (though I enjoy it), so it's helpful if we get feedback as to whether it solved your problem.

FRIdNGE
July 5, 2018

Of course the 2 codes work! [CS6 and + for the first]

Everybody understood Vincent's code is more global because it includes 2nd, 3rd, 4th, 5th …

Best,

Michel, for FRIdNGE

vinny38
vinny38Correct answer
Legend
June 12, 2018

You could even use a grep style to apply superscript to all ordinals:

(?<=\d)(st|nd|rd|th)\b

vladan saveljic
Inspiring
June 12, 2018

grep find:

1\Kst

change

format superscript