Changing color of text found with regex

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

Moderators: xbytor, DavideBarranca, Paul MR

Post Reply
poorawaste
Posts: 1
Joined: Tue Sep 26, 2017 8:45 am

Changing color of text found with regex

Post by poorawaste » Tue Sep 26, 2017 2:54 pm

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: 68
Joined: Thu Jan 01, 1970 12:00 am

Re: Changing color of text found with regex

Post by txuku » Wed Sep 27, 2017 7:39 am

Bonjour

Some answers HERE ! :D

Post Reply