Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.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 在eclipse中搜索多个字符串_Regex_Eclipse_Search - Fatal编程技术网

Regex 在eclipse中搜索多个字符串

Regex 在eclipse中搜索多个字符串,regex,eclipse,search,Regex,Eclipse,Search,我需要在整个工作空间中搜索包含“String1”或“String2”的所有文件。如何在eclipse搜索中实现这一点 在包含文本的中搜索->文件…输入String1 | String2并选中正则表达式。由于范围您必须选择工作区如果您“锁定”一个搜索并打开一个新的搜索窗口,两个搜索的结果将始终突出显示。试试String1 | String2如何获取和工作?我刚从中得到答案,正在键入答案。无论如何,谢谢。

我需要在整个工作空间中搜索包含“String1”或“String2”的所有文件。如何在eclipse搜索中实现这一点

在包含文本的
中搜索
->
文件…
输入
String1 | String2
并选中
正则表达式。由于
范围
您必须选择
工作区

如果您“锁定”一个搜索并打开一个新的搜索窗口,两个搜索的结果将始终突出显示。

试试
String1 | String2
如何获取和工作?我刚从中得到答案,正在键入答案。无论如何,谢谢。