Skip to main content
Inspiring
February 25, 2021
Answered

Find and replace text and glyph m2

  • February 25, 2021
  • 4 replies
  • 2285 views

I'd need to replace all the "m2" in the document with the "m" followed by (the little) apex "2" (Unicode: 00B2). Can't use the glyphs tab because it's not a matter of replacing an existing glyph but to turn a text into another text that ALSO has an unicode character. Very few about this available online.... only me having this need? Workarounds? (p.s.: need to apply a "replace all" because it's a huge amount of pages. Thnx.

 

This topic has been closed for replies.
Correct answer jctremblay

Try this...

Find: 

m\K2

Change:

\xB2

 

4 replies

New Participant
October 30, 2024

aniri5j9ox8tw2ln
Brainiac
July 6, 2023

Hello, I would also need this grep function, but the tips in the answers do not work in CC version 2023. If it finds m2 it replaces me with m\xB2 or m\xK2. Can anyone help me? Thank you very much!

 

P.S. and I need the same grep function to change all CO2 to CO₂...

aniri5j9ox8tw2ln
Brainiac
July 6, 2023

Ok, I was able to solve it at least for m2 like this: find (?<=\<m)2\> and replace with -> Format > Position Superscript

 

For the CO2: find (?<=\<CO)2\>  and replace with the format position Subscript

Robert at ID-Tasker
Brainiac
July 6, 2023

You should apply CharStyle - not local formatting / override. 

 

vladan saveljic
Inspiring
February 26, 2021

... Find:m2, Replace:m\xK2 ...

This can't be correct grep

jctremblay
jctremblayCorrect answer
Community Expert
February 25, 2021

Try this...

Find: 

m\K2

Change:

\xB2

 

Gioyer07Author
Inspiring
February 26, 2021

Thanks.... seems it doesn't work for me. I've tryed both in Text and GREP tab but result is that are no matches to change.