Copy link to clipboard
Copied
Hi
Is it possible to find and change using 2 colors?
I want to find XX in black followed by YY in red and change XX to red.
[Tested]
It works fine but 2 colors, so 2 runs:
1/ Search "black" and replace by "green" [6]
2/ Search "green" and replace by "brown" [3]
(^/)
Copy link to clipboard
Copied
Please post a screenshot of your use case so you can get a detailed answer because there might be several solutions depending on your specific question.
Copy link to clipboard
Copied
I want those black circled words to be in green in this example because they come after a green text.
Copy link to clipboard
Copied
You mean: one word in black between texts in green!
(^/) The Jedi
Copy link to clipboard
Copied
It can be easily scripted - can you share sample document ?
Copy link to clipboard
Copied
Just a Grep F/R:
Find: (?<![^^])\h?\H+\h?(?![^$]) + black
Replace: green
(^/)
Copy link to clipboard
Copied
Copy link to clipboard
Copied
[Tested]
It works fine but 2 colors, so 2 runs:
1/ Search "black" and replace by "green" [6]
2/ Search "green" and replace by "brown" [3]
(^/)
Copy link to clipboard
Copied
It worked indeed.
Can you explain this GREP code?
Thanks.