How to replace/delete lines starts with particular word in Eclipse?

后端 未结 3 2244
轮回少年
轮回少年 2021-02-19 23:55

Some cases, I have to replace/delete lines starts with particular word like \'public\' \'private\' Java classes or for XML file.

           


        
3条回答
  •  太阳男子
    2021-02-20 00:02

    See the image:

    1. add regular expression as Jens correctly mentioned ^\s+.*$
    2. put nothing in here.
    3. Check on regular expression option.
    4. Click Replace All.

    enter image description here

提交回复
热议问题