Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Regular expressions Replace and Replace/Find

Aperta
#4,181 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

The report identifies regular-expression Replace and Replace/Find in the Eclipse UI, but names no source files or tests. Start by locating the find-and-replace implementation and existing regex tests, then reproduce the supplied CRLF case using ,.*\r and \r. Done means both replace operations replace the match as expected; verify with focused tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description
Neither Replace no Replace/Find works for regular expressions. Find still works.

To Reproduce
Just try to Find and then replace some text using regular expression
The important detail is that reqexp shall match the part of line from somewhere in the middle til the end and refer \r as end of line.
For example file containing three lines (last line is empty) and it is CRLF end of line style:
abc, def
ghi, jkl

Use regexp ,.*\r for find and \r for replace.
Yes, using \r seems incorrect, but it is still valid.

Expected behavior
Text is expected to be replaced when regular expression is used

Version Information:
Windows 11
Eclipse IDE for C/C++ Developers (includes Incubating components)
Version: 2026-06 (4.40.0)
Build id: 20260604-0653

Link to original issue
Eclipse CDT issue #1494

Lingua principale
Java
Stelle
124
Fork
269
Merge medio
1g 19h
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-platform/eclipse.platform.ui

Tutte le issue di eclipse-platform/eclipse.platform.ui

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.