Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Regular expressions Replace and Replace/Find

Đang mở
#4,181 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
124
Fork
269
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
69

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-platform/eclipse.platform.ui

Tất cả issue của eclipse-platform/eclipse.platform.ui

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.