I want to run a regex to find instances in my code where I declare an animation duration time: e.g. duration: 2000 and replace them with that duration plus an added variable timeScale, e.g. duration: timeScale * 2000
Some of my codebase already has this - so I want to find all instances of duration: that are not followed by timeScale.
I know I can find things that don't exist by saying: ^((?!timescale).)*$ 
But how do I couple that (or something similar) with the thing that does exist (duration:)?
UPDATE:
I can actually run this in a regex tester:
https://regex101.com/r/vY3pY3/1
duration: (?!timescale)
But how do I run it in VSCode? It gives errors saying unrecognized flag !

 
     
     
    