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

A very basic find and replace question

New Here ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Hi, I have always wanted to do the following:

Find all text with a certain format and then add a special character in front of all instances of the formatted text.

 

For example:

Find format: Times New Roman + Regular + size: 22 pt + color: C=0 M=100 Y=0 K=0

and then I want to add an asterisk in front of occurrence of this format in my document.

 

Can this be done with GREP?

Chris22040923b75s_0-1673024904764.png

 

TOPICS
How to , InCopy workflow

Views

118

Likes

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
Advisor ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Basically:

 

Find: .+

Replace by: *$0

 

(^/)  The Jedi

Likes

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
New Here ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Thank you! this did work.

Likes

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 ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Hi @Chris22040923b75s:

 

Note you need to enable GREP tab at the top of the dialog box. This won't work if you leave the default Text tab selected. 

 

~Barb

Likes

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
New Here ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Yes, that's correct. excuse my poor screenshot etiquette. I did switch the tab when I tried "the Jedi's" method.

Likes

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 ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

@FRIdNGE is perfectly right 😉 BUT @Chris22040923b75s, you need to tell us more about the text you are looking for - only in front of a paragraph or every word or phrase ?

 

Can automate anything - as long as it doesn't require A.I.

Likes

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
New Here ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

in front of a paragraph. But I could see putting it in front of a phrase being very useful as well.

Likes

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 ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Then @FRIdNGE's solution should work perfectly fine.

 

Can automate anything - as long as it doesn't require A.I.

Likes

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 ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

@Chris22040923b75s 

Why not just activate the bullet and numbering function in your paragraph style sheet with the asterisk as a bullet?

pixxxelschubser_0-1673035145365.png

 

Likes

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
New Here ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

LATEST

Well, I just used an asterisk as a stand-in for any string of text I might want to do in the future.

Likes

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