| Summary: | Eclipse Should support multiple line replace operations | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Martin Oberhuber <mober.at+eclipse> | ||||
| Component: | Search | Assignee: | Platform-Search-Inbox <platform-search-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | daniel_megert, deepakazad, eclipse, katalonec, lars.sonchocky-helldorf, lpm_eclipse, markus.kell.r, martinae, mirko.novakovic, mrgcohen, mschorn.eclipse, pedbessa, sanjay.madhavan, stephan.bachofen, stepper, xavier.mehaut, yevshif | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | stalebug | ||||||
| Bug Depends on: | 26780 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Martin Oberhuber
>But I found no way getting a multi-line replacement done.
Add the text into the replace field manually:
line1\R\line2\line3....
>line1\R\line2\line3....
Of course:
line1\Rline2\Rline3....
The following will search multiline, where test could be on line 1 and test 5 on line 20. Of course it's very possibly this recursion will crash eclipse. test(\R|.*?)*test5 (In reply to comment #2) > >line1\R\line2\line3.... > Of course: > line1\Rline2\Rline3.... (In reply to comment #3) This bug is about multi-line *replace*, not search. > The following will search multiline, where test could be on line 1 and test 5 > on line 20. Of course it's very possibly this recursion will crash eclipse. > > test(\R|.*?)*test5 Nested repetition expressions are inherently inefficient. The right way to have "." match line delimiters is to enable single-line mode like this: "(?s)test.*test5" (press Ctrl+Space after "(?" to read the description) 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. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |