• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

grep question

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

756

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
community guidelines

correct answers 1 Correct answer

Advocate , May 01, 2020 May 01, 2020

Hallo,

(?<=\[)(.{2,}?)(?=\])

Votes

Translate

Translate
Advocate ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

Hallo,

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

Votes

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
community guidelines
Community Expert ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

LATEST

Hi @JonathanArias

the same, but different

😉

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

 

Only one note:

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

 

Hi @Mobbytec

🙂

Votes

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
community guidelines