This Eclipse plugin enhances any editor in Eclipse with a Find/Replace dialog that can be brought up with Ctrl + F5.
Compared to the standard Find/Replace dialog in Eclipse, you have the option to replace Regular Expression matches with so-called Match Evaluators.
E.g. suppose you coded a user interface and wanted to move a bunch of controls inside a GridLayout one row down, i.e. replace Row="5" with Row="6" and replace Row="100" with Row="101".
Then search for the Regular Expression (?<=Row=")(\d+) and use the following Match Evaluator to replace those matches:
Function<MatchResult, String> matchEvaluator = new Function<MatchResult, String>(){
@Override
public String apply(MatchResult match){
int i = Integer.parseInt( match.group(1) );
return "" + (i+1);
}
};
Categories: Editor, General Purpose Tools, IDE, Programming Languages, Tools
Tags: regular expressions, find and replace, java, Eclipse Plugin, editor extension, editor, Eclipse Java
Additional Details
Eclipse Versions: Oxygen (4.7), Neon (4.6), Mars (4.5), Photon (4.8), 2018-09 (4.9), 2018-12 (4.10), 2019-03 (4.11), 2019-06 (4.12), 2019-09 (4.13), 2019-12 (4.14), 2020-03 (4.15), 2020-06 (4.16), 2020-09 (4.17), 2020-12 (4.18), 2021-03 (4.19)
Platform Support: Windows, Mac, Linux/GTK
Organization Name: Florian Ingerl
Development Status: Production/Stable
Date Created: Sunday, August 21, 2016 - 16:24
License: EPL
Date Updated: Friday, January 15, 2021 - 10:11
Submitted by: Florian Ingerl
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
December 2024 | 0/0 | 0 | 7 |
November 2024 | 541/658 | 4 | 14 |
October 2024 | 396/663 | 17 | 4 |
September 2024 | 430/642 | 12 | 3 |
August 2024 | 498/641 | 5 | 9 |
July 2024 | 473/663 | 8 | 12 |
June 2024 | 468/681 | 9 | 8 |
May 2024 | 544/682 | 5 | 7 |
April 2024 | 446/687 | 13 | 6 |
March 2024 | 488/694 | 9 | 5 |
February 2024 | 487/687 | 8 | 4 |
January 2024 | 516/691 | 6 | 9 |