I'm getting mad, can't get it to work and can't find a solution. So how can I inverse the following regular expression? All tested strings should match - except those including "dist" or "node_modules". It need this regex for Electron Packager build command to ignore all folders/files excepts those having the string in path name.
regular expression to be inversed: (?=dist|node_modules)\S+