Skip to main content
ali u
Inspiring
February 16, 2024
Question

Using index marker with GREP negative lookbehind

  • February 16, 2024
  • 2 replies
  • 829 views

I want to find a character that does not have an index marker behind it, is this possible with GREP? I tried this but it didn't work:

(?<!~I)a

 

This topic has been closed for replies.

2 replies

FRIdNGE
February 16, 2024

What do you try to play?

 

(^/)  The Jedi

ali u
ali uAuthor
Inspiring
February 16, 2024

I need to add a number of index entries, all of which start with a certain parenthesis. After adding most of them, I want to check if I missed any. Therefore, I'm using a negative lookbehind in grep to verify if there are any parentheses without an index marker preceding them.

FRIdNGE
February 16, 2024

Could you post a screenshot and tell us what "parenthesis" you talk about?

 

(^/)

Community Expert
February 16, 2024

Try escaping the tilde - with '\~'

it might be trying to find a literal tilde

so maybe \~I works better

 

 

Community Expert
February 16, 2024

Now that I've tried it - it's not working. No idea why.