I created a regex expression to match any string surrounded by quotation marks in a log such as "example" but exclude the word heartbeat if found.
[^0-9A-Za-z_&-]("(?!heartbeat)[A-Za-z0-9_.&?=%~#{}()@+-:]*")[^A-Za-z0-9_-]
I verified the expression in regex101 but once in MobaXterm it does not work. My assumption is MobaXterm does not handle Negative Lookaheads.
Keep in mind the following does work:
[^0-9A-Za-z_&-]("[A-Za-z0-9_.&?=%~#{}()@+-:]*")[^A-Za-z0-9_-]
Is there an alternative to what I am trying to achieve?