Click here to Skip to main content
12,628,277 members (36,001 online)
Click here to Skip to main content
Add your own
alternative version

Stats

15.8K views
7 bookmarked
Posted

Regex to remove someone's overzealous use of regions.

, 23 Nov 2009 CPOL
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)

Share

About the Author

Daniel Vaughan
President Outcoder
Switzerland Switzerland
Daniel Vaughan is a Microsoft MVP and co-founder 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, UWP, and the Xamarin tools.

Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.

Daniel is the developer behind several acclaimed mobile apps including Surfy Browser for Android and Windows Phone. Daniel is the creator of a number of popular open-source projects, most notably the Calcium MVVM Toolkit.

Would you like Daniel to bring value to your organisation? Please contact

Surfy Browser | Daniel's Blog | MVP profile | Follow on Twitter


Xamarin Experts
Windows 10 Experts

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralMy vote of 5 Pin
Forhad Reza17-Nov-16 6:30
memberForhad Reza17-Nov-16 6:30 
QuestionNice, some people really go overboard with regions Pin
brunzefb10-Jun-14 11:20
memberbrunzefb10-Jun-14 11:20 
GeneralReason for my vote of 5 Good one Daniel Pin
thatraja7-Mar-11 7:35
mvpthatraja7-Mar-11 7:35 
GeneralRe: Thanks Thatraja! Pin
Daniel Vaughan7-Mar-11 8:29
memberDaniel Vaughan7-Mar-11 8:29 
GeneralReason for my vote of 5 #region is maybe the worst thing in ... Pin
Remi BOURGAREL26-Oct-10 12:48
memberRemi BOURGAREL26-Oct-10 12:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web01 | 2.8.161205.3 | Last Updated 23 Nov 2009
Article Copyright 2009 by Daniel Vaughan
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid