Bug 306344 - [find/replace] Matched regex groups should be visible (e.g. color highlight)
Summary: [find/replace] Matched regex groups should be visible (e.g. color highlight)
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5.2   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 07:09 EDT by Neale Upstone CLA
Modified: 2019-09-06 16:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.