65.9K
CodeProject is changing. Read more.
Home

Regex to remove someone's overzealous use of regions.

starIconstarIconstarIconstarIconstarIcon

5.00/5 (13 votes)

Nov 23, 2009

CPOL
viewsIcon

31191

A Visual Studio regex to remove someone's overzealous use of regions in VS. Find and replace: (^.*\#region.*$)|(^.*\#endregion.*$) Remember to enable regular expressions in the Visual Studio find and replace dialog.

A Visual Studio regex to remove someone's overzealous use of regions in VS.

Find and replace: (^.*\#region.*$)|(^.*\#endregion.*$)

 Remember to enable regular expressions in the Visual Studio find and replace dialog.