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?
Basically:
Find: .+
Replace by: *$0
(^/) The Jedi
Copy link to clipboard
Copied
Basically:
Find: .+
Replace by: *$0
(^/) The Jedi
Copy link to clipboard
Copied
Thank you! this did work.
Copy link to clipboard
Copied
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
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.
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 ?
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.
Copy link to clipboard
Copied
Then @FRIdNGE's solution should work perfectly fine.
Copy link to clipboard
Copied
Why not just activate the bullet and numbering function in your paragraph style sheet with the asterisk as a bullet?
Copy link to clipboard
Copied
Well, I just used an asterisk as a stand-in for any string of text I might want to do in the future.