A
A
Alexander2016-10-19 08:29:41
Regular Expressions
Alexander, 2016-10-19 08:29:41

How to correctly add (AND) or (OR) to the regular expression?

{
                test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
                loader: "file?name=[1]&regExp=node_modules|src/(.*)"
            },

There is a regular expression regExp=node_modules|src/(.*) which only applies to src but not to node_modules .
How to specify the symbol correctly so that it applies to src and node_modules

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
strelmax, 2016-10-19
@strelmax

попробуйте так
(node_modules|src)\w*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question