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

Using index marker with GREP negative lookbehind

Explorer ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

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

 

TOPICS
How to

Views

332

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 ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

Try escaping the tilde - with '\~'

it might be trying to find a literal tilde

so maybe \~I works better

 

 

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 ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

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

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
Explorer ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

I tried it but didn't work, and if I just search "(?=~I)" it finds indeks markers without escaping

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
Guide ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

What do you try to play?

 

(^/)  The Jedi

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
Explorer ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

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.

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
Guide ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

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

 

(^/)

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
Explorer ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

sure, they are FD3F ornate right paranthesis

 

FD3F.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
Guide ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

OK! for the sample I've used a simple parenthesis (change it for your use)

 

Create a condition and play these 2 simple regex:

 

1/ "Change All":

 

Capture d’écran 2024-02-16 à 16.04.36.png

 

This will mark all the parentheses preceded by an Index Maker.

 

2/ Search one by one:

 

Capture d’écran 2024-02-16 à 16.06.02.png

 

This will find all the parentheses that are not marked! Those you want to check!

 

Finally, trash the condition.

 

(^/)

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
Explorer ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

LATEST

Thanks, if we can't use index marker with negative lookbehind then this will have to do.

Thank you very much.

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