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

后端 未结 3 2246
轮回少年
轮回少年 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:08

    use this regexp: ^\s+.*$ This will remove all lines starting with . Make sure you have checked the checkbox "Regular expression"

提交回复
热议问题