Skip to main content
Inspiring
May 19, 2023
Answered

mark everything after certain word using GREP

  • May 19, 2023
  • 1 reply
  • 2636 views

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

 

 

This topic has been closed for replies.
Correct answer jmlevy

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


Add this to your GREP: (?s)

By the way, you forgot the hyphen in your GREP

1 reply

Nima S.Author
Inspiring
May 19, 2023

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

Scott Falkner
Community Expert
Community Expert
May 20, 2023

Use this as your GREP term…

(?<=Graphem-).+

 

 

Nima S.Author
Inspiring
May 20, 2023

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