1 person found this helpful
You can do it with a regular text search for formatting. Is there a reason you need GREP?
Hi Awitmer—just clarifying Jane's correct answer, above. You don't need GREP to simply locate text or digits that are using superscript: If there is something behind the question, maybe you do, so in that case come back and let us know. Otherwise:
Edit > Find/Change
Thank you so much for your replies!
I had forgotten that I could find superscript characters with a regular search for text formatting. The reason I was wondering about the grep code was because I was wanting to create a grep style in a paragraph style that would automatically grab all superscript characters and format them with a character style. I suppose that I could just do this formatting in the Find/Change dialog.
Find > Basic Character > Superscript
Change to > Character Style > NameOfYourCharStyle
Unless it's a Footnote. You can apply a Character Style in Footnote Options directly.
GREP styles would not have worked here anyway. You can only include characters to match in a GREP style, no formatting.
(One possible way to make it work with a GREP style would be to replace all faux superscripts with actual Unicode superscript characters - but there are very few fonts that do have 'em, even only for numbers.)
Ok, I get what you are saying. For some reason I was thinking that the superscript characters were characters of their own and not just regular characters with the “superscript” formatting applied.
Thanks all for your help!