views:

44

answers:

1

I'm cleaning up files using notepad ++, and trying to delete lines that start with \pard and have some text then end with a line feed. But \n doesn't work in regular expression and .* doesn't work in an extended find and replace.

This is what I've tried unsuccessfully. \pard.*\n

\pard.* works but leaves the line feed in regex.

Any ideas?

A: 

do you mean exactly "\pard" or "\p"ard? If it's the first then you need to escape the "\" with another "\".

\\pard.*\n

You may also need to look at the new line character actually being a pc format which is \r\n

\\pard.*\r\n
Keng