<http://forum.pspad.com/read.php?f=2&i=12420&t=12420> 
----------------------------------------------------------------

Hi All,

I'm wondering if anyone can help me work out how (or if) I can search /
replace newline characters using regular expressions in PSPad 4.5.0?

A practical example - I had an article I took off the Net that I wanted to
save for later research purposes. It was formatted so that each paragraph
only had one newline character at the end, and I prefer to have two
newline characters separating paragraphs to make reading easier.

In Textpad, using a regex search and replace, I would have searched for
"\n" (without the quotes) and replaced with "\n\n". This would have
added that extra line between paragraphs.

In PSPad, though, the search part of search / replace doesn't seem to
recognize "\n". So I'm wondering if this is a bug in the regex engine
in PSPad, or a known limitation, or am I unaware of some other character
representation of newlines in PSPad?

Any help appreciated!

Much warmth,

planetthoughtful
---
"Lost in thought"
http://www.planetthoughtful.org

-- 
PSPad freeware editor http://www.pspad.com

Reply via email to