Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 407546

Summary: Local search: Provide useful tool tips on the replace field when regEx flag is on.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ken_walker, mamacdon
Version: 2.0   
Target Milestone: 4.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2013-05-08 10:52:41 EDT
In the local search(CTRL+F feature in the editor), when the regEx flag is on, it is hard for the user to observe the powerful regEx relacement.
For example you can search on  <h2>(.*)</h2> and replace it with <li>$1</li>.
We should tool tip this or pop up something to draw user's attention.
Comment 1 libing wang CLA 2013-07-24 12:21:10 EDT
We can add an info image on the right of the replace when regEx is selected, to draw user's attention. When user hovers on the info image, something like below pops up as tool tips:

You can do powerful replacement by regular expressions. For examples, you can search for <td([\s\S]*?)</td> and replace it by <span$1</span>. This will replace all the 'td' elements in your html by 'span' elements.