Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex package.json中的负正则表达式_Regex_Jestjs - Fatal编程技术网

Regex package.json中的负正则表达式

Regex package.json中的负正则表达式,regex,jestjs,Regex,Jestjs,在我的package.json中,我有一个正则表达式,只处理包含“.integration”的文件 命令如下所示: "test:integration": "jest .*\\.integration\\..*" 如何选择不包含“.integration.”的文件?可能是一个类似于 ^(?!.*\\.integration\\.).*$ 可能有点接近,但不确定 非常感谢。在package.json中工作的实际命令是:jest\“^(?。.*\.integration\\).$\”

在我的package.json中,我有一个正则表达式,只处理包含“.integration”的文件

命令如下所示:

"test:integration": "jest .*\\.integration\\..*"

如何选择不包含“.integration.”的文件?

可能是一个类似于

^(?!.*\\.integration\\.).*$
可能有点接近,但不确定


非常感谢。在package.json中工作的实际命令是:jest\“^(?。.*\.integration\\).$\”