I’ve got this regex:
.*js/[\bpackaged\b]+\.js
At the moment it matches ‘packaged.js’ from the list below:
- js/foo.js
- js/bar.js
- js/suitcase.js
- js/bootstrap.js
- js/packaged.js
How can I invert this so that it matches all the others except for ‘packaged.js’?
the example is just showing the expression, if you really use grep, -v could make it easier.
— updated based on glibdud’s comment —
notice the last 5 lines in input:
output: