Reply To: How to find Superscript using FindChangeByList?

#71083
Matt Mayerchak
Participant

I don’t know of a way to find a space before superscript, because superscript is a formatting attribute and you can’t find mixed formatting attributes (assuming you mean that the space is NOT superscripted).

But, you can use a 2-step workaround:

Step 1 is to find all superscript characters that have a space before them with GREP, using positive look behind for space characters, and in the Change field, you can insert something unique (like 2 bullets ••) before whatever is found without changing what is found. So, space+(superscript)9 would change to space••9

(i.e. you don’t look for the space – you look for the superscript characters that are preceded by a space)

Then, if you want to remove all of those spaces, you can just find all space+•• and remove them all.

This article was last modified on October 16, 2014

Comments (0)

Loading comments...