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

mark everything after certain word using GREP

Explorer ,
May 19, 2023 May 19, 2023

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
2.6K
Translate
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

Translate
Explorer ,
May 19, 2023 May 19, 2023

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

Translate
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

Use this as your GREP term…

(?<=Graphem-).+

 

Screenshot 2023-05-19 at 6.27.47 PM.png

 

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

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

Translate
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

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

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

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

Translate
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
Explorer ,
May 20, 2023 May 20, 2023
LATEST
Oh, nevermind. I just found it out. Thanks again.
Translate
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