Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Search and Replace a pattern in eclipse.(Replace html comments with jsp comments in all jsp of workspace.)
Search and Replace a pattern in eclipse. [message #1701756] Wed, 15 July 2015 12:28 Go to next message
Basil Abraham is currently offline Basil AbrahamFriend
Messages: 3
Registered: July 2015
Junior Member
I have a requirement to replace all html comments in all jsp file in my work space with jsp comments. I need to search for all and replace with <%-- --%> and I should not loose the comments.

For Eg

<!-- I have a comment here --> should be replaced with.
<%-- I have a comment here --%>
I am using eclipse Mars version to do this. Please let me know if I have some other better way to do it.

[Updated on: Wed, 15 July 2015 12:29]

Report message to a moderator

Re: Search and Replace a pattern in eclipse. [message #1701777 is a reply to message #1701756] Wed, 15 July 2015 14:18 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
I'd try doing it in two steps, first replace <!-- with <%-- and then replace --> with --%>. Of course limiting the search scope to *.jsp
Previous Topic:Right-click problem
Next Topic:Location of the exe in Eclipse Luna (C++)
Goto Forum:
  


Current Time: Fri Apr 26 20:02:09 GMT 2024

Powered by FUDForum. Page generated in 0.08305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top