Skip to main content
Enchanted_difference1549
Inspiring
September 24, 2017
Answered

GREP positive lookahead with OR condition

  • September 24, 2017
  • 1 reply
  • 1018 views

Hi there,

suppose I'm trying to find all the occurrences of WORD just before a paragraph end (\r) OR at story end (\z)

why is this GREP not working?

WORD(?=\r|\z)

while as single queries WORD(?=\r) and WORD(?=\z) they work?

How do I need to apply the OR?

Thanks so much!

L.

This topic has been closed for replies.
Correct answer winterm

just keep it simple:

WORD$

1 reply

winterm
wintermCorrect answer
Legend
September 24, 2017

just keep it simple:

WORD$

Enchanted_difference1549
Inspiring
September 24, 2017

omg.