Here is an example of different paragraphs
Upgrade is the first word in this paragraph.
In this paragraph, upgrade is the last word.
And this paragraph endsupgrade with upgrade.
But I don't want to upgradefind that word in this command `gigalixir:upgrade`.
As you can see there are 6 instances of upgrade word in above mentioned four lines. I am trying to find all the upgrade words except the one at the last (because that word is inside the command inside backticks). I also do not want to find upgrade words that are not independent.
So in the above sentence following words marked with double * should be selected:
**Upgrade** is the first word in this paragraph.
In this paragraph, **upgrade** is the last word.
And this paragraph endsupgrade with **upgrade**.
But I don't want to upgradefind that word in this command `gigalixir:upgrade`.
I have tried this simple regex:
/\bupgrade\b/gi
That selects all the independent words but I want to ignore the upgrade word inside backticks.
Note: I do not want to use lookahead or lookbehind, because I am executing this regex inside browser and any browser except chrome does not support that.