Bug 306344

Summary: [find/replace] Matched regex groups should be visible (e.g. color highlight)
Product: [Eclipse Project] Platform Reporter: Neale Upstone <neale>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.5.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Neale Upstone CLA 2010-03-18 07:09:29 EDT
The following would make writing regex group search replace operations much slicker...


If I open the search/replace dialog box and do a regex search, e.g. for

  /country/([a-z]+)/code/([0-9]+)/

On:

  http://server/app/country/usa/code/90210/blahblahblah

When I press "Find", the UI highlights:

  http://server/app[/country/usa/code/90210/]blahblahblah

   where [   ] indicates the highlighted area

What I would like is for usa and 90210 to be fed back as the group match parts.

In the editor, this would be done using a different colour:

  http://server/app[/country/{usa}/code/{90210}/]blahblahblah

   here {  } indicates a new highlight colour for a regexp group match

This is probably a relatively quick job.

A slightly harder (I suspect) addition would be that in the Replace field of the Find/Replace dialog box, the quick assist for 
$1 and $2 could show the currently matched text.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:12:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.