Given the following text: "a | b | c | d"
Search for: \|
Replace by: 
|

In the latest stable version, the around 16000 newlines are inserted after "a"
until PSPad gives up and tells me the regex is not formatted correctly.
In the latest development version, I can observe two behaviours. Either the
replaced document looks like this:
"a 
| b | c | d"
PSPad tells me that the expression was replaced three times, although obviously
it was only replaced once.

Or, if it search for "|" instead of "\|", I get:
"  
|
|
|
|
|
|
|
|
|
|
|
|
|
|a | b | c | d"
PSPad tells me the expression was replaced 14 times.

All three behaviours obviously do not deliver the expected outcome, which is:
"a
| b
| c
| d"

-- 
<https://forum.pspad.com/read.php?4,69787,69787>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem