views:

47

answers:

2

I'm trying to match

<!-- Start Comment

content spanning several lines here 

End Comment -->

And I figured something like this would do the trick:

(<!-- Start Comment).*(End Comment -->)

but the . is not matching newlines. How do I get it to recognize my entire block which contains a host of different characters including newlines?

Thanks.

+1  A: 

See http://stackoverflow.com/questions/2681399/finding-line-beginning-using-regular-expression-in-notepad

Apparently, Notepad++ regular expressions are line-based. They can't span lines.

Jim Mischel
+1  A: 

It doesn't seem that Notepad++ handles newlines very well. This page has some creative workarounds, though:

http://www.powercram.com/2009/08/notepad-guide-to-using-regular.html

Matthew Cole