You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regular expressions Replace and Replace/Find #4181
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
Line ending on Windows is \r\n, not \r. When using \r\n for find/replace, the string is properly matched. For find/replace, there is also the generic \R for platform-independent line endings.
Agree. From the other hand regexp ,.*\r is absolutely valid doesn't matter what OS or lets say line ending is in the file. Regexp \r is also absolutely valid one. There is pretty long discussion on this in the original issue.
Activity
HeikoKlare commentedon Jul 12, 2026
Line ending on Windows is
\r\n, not\r. When using\r\nfor find/replace, the string is properly matched. For find/replace, there is also the generic\Rfor platform-independent line endings.almi33 commentedon Jul 15, 2026
Agree. From the other hand regexp
,.*\ris absolutely valid doesn't matter what OS or lets say line ending is in the file. Regexp\ris also absolutely valid one. There is pretty long discussion on this in the original issue.