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

mark everything after certain word using GREP

Community Beginner ,
May 19, 2023 May 19, 2023

Copy link to clipboard

Copied

Hi there,
I'm trying to select some parts of a paragraph using GREP. I have a textbox with two paragraphs, and I like to style the last part differently. To be exact, everything that came after the word "Graphem-" till the end of the paragraph.
That is what it currently looks like for me.
Can anyone help?
Thanks

 

 

TOPICS
Bug , How to

Views

165

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

Community Expert , May 20, 2023 May 20, 2023

Add this to your GREP: (?s)

Capture d’écran 2023-05-20 à 14.02.18.png

By the way, you forgot the hyphen in your GREP

Votes

Translate

Translate
Community Beginner ,
May 19, 2023 May 19, 2023

Copy link to clipboard

Copied

Unfortunately, I was not able to edit my post afterward and also forgot to send the screenshot.
So here it is.

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 19, 2023 May 19, 2023

Copy link to clipboard

Copied

Use this as your GREP term…

(?<=Graphem-).+

 

Screenshot 2023-05-19 at 6.27.47 PM.png

 

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 Beginner ,
May 20, 2023 May 20, 2023

Copy link to clipboard

Copied

I tried it out, but it didn't work. Maybe because I have a forced linebreak in there. 🤷‍:male_sign:

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 20, 2023 May 20, 2023

Copy link to clipboard

Copied

Add this to your GREP: (?s)

Capture d’écran 2023-05-20 à 14.02.18.png

By the way, you forgot the hyphen in your GREP

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 Beginner ,
May 20, 2023 May 20, 2023

Copy link to clipboard

Copied

Ok, that seems to be working. I also put " Graphem-" at the beginning, so "Graphem-" is also selected.
And what is (?s) stand for?

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 Beginner ,
May 20, 2023 May 20, 2023

Copy link to clipboard

Copied

LATEST
Oh, nevermind. I just found it out. Thanks again.

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