Search for "ld", but not for "field"


I have to clone a script, means to replace a lot of phrases, templates and some code.
I tried a regex, but i fail.

find {ld}
but not when ld is in {field|build}

How can i do that, please?


@anjade, this is more of a stackoverflow question but there is a regex tool in Komodo IDE where you can try all of this. Tools menu > RX Toolkit.

To attempt to answer your question, I think adding \b (word boundary) around the Id should accomplish what you want, \bId\b.

  • Carey