Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 432966

Summary: infinite loop when attempting to find/replace based on a regex
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: Silenio_Quarti
Version: 6.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2014-04-16 16:56:28 EDT
- create a .js file with content:

+ hi
+ hi
+ hi

- Ctrl+F to show Find
- check Options > Regular Expression
- in the Find With text enter: ^\+
  -> highlights the '+' at the beginning of each line, good
- press Replace and note that the selection cycles through the +'s, but does not replace them; this is possibly the root cause of the problem
- now press Replace All and the Find continues forever (possibly also because option Wrap Search is checked by default)