Click here to Skip to main content
Click here to Skip to main content

Regex to remove someone's overzealous use of regions.

, 23 Nov 2009
Rate this:
Please Sign up or sign in to vote.
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Daniel Vaughan
President Outcoder
Switzerland Switzerland
Daniel Vaughan is a Microsoft MVP and cofounder of Outcoder, a Swiss software and consulting company dedicated to creating best-of-breed user experiences and leading-edge back-end solutions, using the Microsoft stack of technologies--in particular WPF, WinRT, and Windows Phone.
 
Daniel is the author of Windows Phone 7.5 Unleashed and Windows Phone 8 Unleashed, both published by SAMS.
 
Daniel is also the creator of a number of open-source projects, including Calcium SDK, and Clog.
 
Would you like Daniel to bring value to your organisation? Please contact

Daniel's Blog | MVP profile | Follow on Twitter
 
Windows Phone Experts
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
QuestionNice, some people really go overboard with regions Pinmemberbrunzefb10-Jun-14 10:20 
GeneralReason for my vote of 5 Good one Daniel Pinmvpthatraja7-Mar-11 6:35 
GeneralRe: Thanks Thatraja! PinmemberDaniel Vaughan7-Mar-11 7:29 
GeneralReason for my vote of 5 #region is maybe the worst thing in ... PinmemberRemi BOURGAREL26-Oct-10 11:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 23 Nov 2009
Article Copyright 2009 by Daniel Vaughan
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid