Skip to main content
Inspiring
April 27, 2023
Question

| in lookbehind

  • April 27, 2023
  • 1 reply
  • 149 views

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 has been closed for replies.

1 reply

Community Expert
May 25, 2023

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

-Manan