^start of string
Negative Lookahead(?!\/root\/src\/) \/the literal / (4710 / 578 / 2F16)
rootthe literal text root (case sensitive) \/the literal / (4710 / 578 / 2F16)
srcthe literal text src (case sensitive) \/the literal / (4710 / 578 / 2F16)
.+any character (except for line terminators), repeated at least once
\/the literal / (4710 / 578 / 2F16)
node_modulesthe literal text node_modules (case sensitive) \/the literal / (4710 / 578 / 2F16)
.+any character (except for line terminators), repeated at least once
Negative Lookbehind(?<!\/package\.json) \/the literal / (4710 / 578 / 2F16)
packagethe literal text package (case sensitive) \.the literal . (4610 / 568 / 2E16)
jsonthe literal text json (case sensitive) $end of string
g modifier: global. Finds all matches instead of stopping after the first