• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Find and replace text and glyph m2

Participant ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

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.

 

TOPICS
How to , Scripting , Type

Views

954

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 25, 2021 Feb 25, 2021

Try this...

Find: 

m\K2

Change:

\xB2

 

Votes

Translate

Translate
Community Expert ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

Try this...

Find: 

m\K2

Change:

\xB2

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 26, 2021 Feb 26, 2021

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 26, 2021 Feb 26, 2021

Copy link to clipboard

Copied

Sorry... it works. The correct syntax is Find:m2, Replace:m\xK2. Thanks

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 26, 2021 Feb 26, 2021

Copy link to clipboard

Copied

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

This can't be correct grep

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

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₂...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

You should apply CharStyle - not local formatting / override. 

 

▒► ID-Tasker / ID-Tasker Server - work smart not hard ◄▒

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

I use similar technique to automatically format st, nd, th in dates after the number of the day. By adding this to the paragraph/character styles, the formatting happens as I import or type the text. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 10, 2023 Jul 10, 2023

Copy link to clipboard

Copied

LATEST

That was a good tip, watched a few tutorials and read into the Adobe help and it works wonderfully!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines