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
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
\ras 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
,.*\rfor find and\rfor replace.Yes, using
\rseems 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