I want to replace org in word but only if it does not contains the substring gross. For ex
org_selling -> original_selling
but
org_selling_gross -> org_selling_gross
I want to replace org in word but only if it does not contains the substring gross. For ex
org_selling -> original_selling
but
org_selling_gross -> org_selling_gross
You might find that the following logic works:
Find: org_(?!\w*gross)
Replace: original_
The regex find pattern says to match:
org_(?!\w*gross) assert that "gross" does NOT appear in following substringHere is a working demo.