Find/Replace with Regular Expressions and Match Evaluators

Add this URL to your Eclipse Installation to reach this solution's update site.

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)

https://github.com/florianingerl/com.florian.regexfindandreplace/raw/master/releng/com.florianingerl.regexfindandreplace.updatesite/releases/latest

Learn more...
Solution Description

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);

}

};

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

Screenshot
Date Ranking Installs Clickthroughs
April 2024 440/684 12 6
March 2024 488/694 9 5
February 2024 487/687 8 4
January 2024 516/691 6 9
December 2023 494/671 7 12
November 2023 484/686 9 6
October 2023 569/673 4 3
September 2023 425/663 15 5
August 2023 474/673 9 2
July 2023 477/668 9 3
June 2023 413/669 18 9
May 2023 414/671 18 5
View Data for all Listings

Unsuccessful Installs

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)

Marketplace Drag to Install Button

By adding the following code below to your website you will be able to add an install button for Find/Replace with Regular Expressions and Match Evaluators.

HTML Code:

Markdown Syntax:

Output:

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client