Skip to main content
Inspiring
Apr 27, 2023 11:12 PM UTC
Question

| in lookbehind

I'm trying to find instances of "salt" or "Salt" within a particular style.  When I use

(?<![T|t]able )salt

I get "Kosher" or "kosher" salt and "unsalted"

I've tried seemingly every combination of | with cap and lc kosher and "un" to exclude those, but nothing has worked. I think I'm tripping over brackets and parentheses in the wrong combinations. 

Can anyone help? THANK YOU in advance if you can help me with this.

 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Community Expert
May 25, 2023 1:27 PM UTC

Hi @ArchieOldie,

I could not understand your question fully. Can you share a sample input and explain what should be found and what should not be found

-Manan

Translate
-Manan