开发者

How do I search for two strings on the same line in Eclipse?

开发者 https://www.devze.com 2023-04-07 06:32 出处:网络
Mainly I want to search for all lines that contain XXX and YY开发者_开发知识库Y on the same line in Eclipse.

Mainly I want to search for all lines that contain XXX and YY开发者_开发知识库Y on the same line in Eclipse.

What would be the correct search expression for that?


This regex should comply with your request:

(XXX.*YYY|YYY.*XXX)

Used under File Search, checking Regular expression.


Use XXX*YYY in file search option. This will mean that any characters can come in between XXX and YYY.

0

精彩评论

暂无评论...
验证码 换一张
取 消