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

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

272

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

Guide , Jan 06, 2023 Jan 06, 2023

Basically:

 

Find: .+

Replace by: *$0

 

(^/)  The Jedi

Votes

Translate

Translate
Guide ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

Basically:

 

Find: .+

Replace by: *$0

 

(^/)  The Jedi

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

Copy link to clipboard

Copied

Thank you! this did work.

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 ,
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

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

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 ,
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 ?

 

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

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

Copy link to clipboard

Copied

Then @FRIdNGE's solution should work perfectly fine.

 

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 ,
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

 

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

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