Bug: Replacing line-breaks in selected text with RegExp
Posted: Thu Nov 06, 2003 12:07 pm
Using TextPad 4.6.2 / NT4
Select a few lines and start the Search & Replace dialog. Check Selected text on, and Regular expression too.
Find what = \n
Replace with = <a single space>
Click Replace All .. you end up with all the lines concatenated ok, but the problem is that only the text from the first of the original lines remains selected.
This causes havoc in macros that want to transform selected text with multiple executions of regular expression replacements. Instead, all the text should remain selected (please) .. just as it does when performing multiple replacements on selected text without removing line-breaks.
Select a few lines and start the Search & Replace dialog. Check Selected text on, and Regular expression too.
Find what = \n
Replace with = <a single space>
Click Replace All .. you end up with all the lines concatenated ok, but the problem is that only the text from the first of the original lines remains selected.
This causes havoc in macros that want to transform selected text with multiple executions of regular expression replacements. Instead, all the text should remain selected (please) .. just as it does when performing multiple replacements on selected text without removing line-breaks.