How to use a Capture Group with gulp-replace?
问题 gulp-replace 0.5.4 Current via gulp and rev: <link rel="stylesheet" href="assets/styles/app-3c224ff086.css"> Goal : <link rel="stylesheet" href="assets/styles/app-3c224ff086.css" media="screen"> Result : <link rel="stylesheet" href="$1" media="screen"> Initial test was: https://regex101.com/r/miM7TN/1 . I might have linked the test with a capture group of $0, but in my project I am using capture group 1. In my gulp task the following is added: var regex = /\"assets\/styles\/app-+.*\"/; var