Changing color of text found with regex

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

poorawaste
Posts: 2
Joined: Tue Sep 26, 2017 8:45 am

Changing color of text found with regex

Post by poorawaste »

Hi,
I have multiple text layers in the document. I would like to filter through the contents of each text layer with regex and change the color of the found result.
In the example below I would like to find all the hastags in the text layer and change the color to blue.

Example:
This is a really long piece of text copy and #hashtag more copy here #anotherhastag #hashtagNo3

I've written a few scripts for indesign that involve GREP(regex) and it's fairly simple to change the color of the found results. I can't seem to find a solution for this in photoshop.

Thanks
User avatar
txuku
Posts: 136
Joined: Thu Jan 01, 1970 12:00 am

Re: Changing color of text found with regex

Post by txuku »

Bonjour

Some answers HERE ! :D