Regex inside path parameter of Gulp.src()
<p>How does one exclude minimised files from a gulp.src (<code>glob</code>?) file path via regex or wildcards?</p>

<p>Or maybe even simpler, how does one move minimised files only to their min/{javascript|css} folders?</p>

<p>I have tried the following:</p>

<pre><code>var dir = "./src/",
    lib_dir = "./lib/";

gulp.task("movelib", function(){

    gulp.src(lib_dir + "libraries\/.*\.min\.js")
        .pipe(plumber({errorHandler: function(e){console.log(e); this.emit('end');}}))
        .pipe(gulp.dest("./dist/assets/min/js"));

    gulp.src(lib_dir + "libraries\/.*(?!\.min)\.js")
        .pipe(plumber({errorHandler: function(e){console.log(e); this.emit('end');}}))
        .pipe(gulp.dest("./dist/assets/js"));

    gulp.src(lib_dir + "libraries\/.*\.min\.css")
        .pipe(plumber({errorHandler: function(e){console.log(e); this.emit('end');}}))
        .pipe(gulp.dest("./dist/assets/min/css"));

    gulp.src(lib_dir + "libraries\/.*(?!\.min)\.css")
        .pipe(plumber({errorHandler: function(e){console.log(e); this.emit('end');}}))
        .pipe(gulp.dest("./dist/assets/css"));

    return;

});
</code></pre>

<p>However it does not work.</p>