How to use slashes in the regular expression in Gulp?

Hello.
I have two files relative to the root of the project, which is gulpfile.js they have such ways:
src/index.html
and
src/page1/page1.html

I do so:
gulp.src("src/+(index.html/page1/page1.html)");

Then the pipe needs to handle these two file and put the modified version in a directory /build. The problem is that it is processed only index.html and page1.html is not affected.

If .src() to pass the following line:
"+(src/index.html/src/page1/page1.html)"
it is not processed, none of these files. Then the problem is in the slashes inside the +().

Please tell me how to put the path containing the forward slash, b +()
Glob'on the issue tracker but nothing about it found. https://github.com/isaacs/node-glob
April 19th 20 at 12:24
2 answers
April 19th 20 at 12:26
But why do that when you can just
gulp.src('src/**/*.html')
 .pipe(gulp.dest('build/'));
Hello, this way I don't really fit, as in the src folder there was another folder in templates/ with all sorts of headers, footers, which also had the extension html. If in src/ to create the folder pages/, it is possible to gulp.src() to pass "src/pages/**/*.html".
However, there were another solution is to gulp.src(), it is possible to pass an array with paths :) - Marley_Cole commented on April 19th 20 at 12:29
April 19th 20 at 12:28
What do have to identify plus in this case? Maybe throw it at all?
With the repository node-glob'a
+(pattern|pattern|pattern) Matches one or more occurrences of the patterns provided.

By the way, the solution was found - is in a gulp.src() you can pass an array with paths :) - Marley_Cole commented on April 19th 20 at 12:31

Find more questions by tags Gulp.jsNode.jsJavaScript