Highlighted

grep question

Adobe Community Professional ,
May 01, 2020

Copy link to clipboard

Copied

good morning. happy friday

 

i have a layout that ask for text to be italic when inside brackets.

 

ex:

"[this text should have the italic character style applied to it]"

 

how do i do this via GREP?

thanks

jonathan

TOPICS
How to, Scripting

Views

589

Likes

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

grep question

Adobe Community Professional ,
May 01, 2020

Copy link to clipboard

Copied

good morning. happy friday

 

i have a layout that ask for text to be italic when inside brackets.

 

ex:

"[this text should have the italic character style applied to it]"

 

how do i do this via GREP?

thanks

jonathan

TOPICS
How to, Scripting

Views

590

Likes

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
May 01, 2020 0
Advocate ,
May 01, 2020

Copy link to clipboard

Copied

Hallo,

(?<=\[)(.{2,}?)(?=\])
Viele Grüße
Mario

Likes

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
Reply
Loading...
May 01, 2020 2
Most Valuable Participant ,
May 01, 2020

Copy link to clipboard

Copied

Hi @JonathanArias

the same, but different

😉

\[\K[^\]]+(?=\])

 

Only one note:

Are you really sure that your brackets stays "normal"?

 

Hi @Mobbytec

🙂

Likes

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
Reply
Loading...
May 01, 2020 2