Skip to content

Regular expressions Replace and Replace/Find #4181

Description

@almi33

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions