Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.2.2 OS: Linux With a newly empty text buffer in kate, I write some random text with some blank lines in the middle. ej. asdfadf asfasdf asdf asdfasdf Then, I try to replace these lines using the regexp ^* with blank (the default selection in the replace) and Kate never comes back. I have to kill it. Regards.
Correct. We should prevent the infinite searching, but we don't yet provide search/replace spanning line breaks.
Allthough the correct regexp to match a empty line would be "^\s*$"
infinite loop solved, but lines still will stay
I was going to report a related problem: Searching for $ and replacing with some text (to append some text to the end of each line) also causes an infinite loop. Will this problem also be fixed by your fix?
Subject: Re: not responding when replacing regexp ^* with blank (default) On Thursday 08 May 2003 04:58, T Phillips wrote: > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > > http://bugs.kde.org/show_bug.cgi?id=55954 > > > > > ------- Additional Comments From t.phillips@murdoch.edu.au 2003-05-08 > 04:58 ------- I was going to report a related problem: Searching for $ and > replacing with some text (to append some text to the end of each line) also > causes an infinite loop. Will this problem also be fixed by your fix? Partly: It works if you are no using the prompt. A workaround: search for "(.)$" and replace with "\1NEW TEXT" -anders
no longer crashs, but is a nice wish and duplicate *** This bug has been marked as a duplicate of 55949 ***