开发者

How do I search for two strings 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜