In some cases, I have to replace / delete lines starting with a specific word like "public" 'private' of the Java classes or <version> for the XML file.
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>${version.bean.validation.hibernate}</version> </dependency>
Here, using find / replace, I want all lines to start with '<version>' . How to achieve this.
eclipse regex
Sun
source share