Leveraging regular expressions within MCMS implementations

Regular expressions can be powerful and helpful for MCMS 2002 projects, particularly for navigation components. When used correctly, can save time

In the course of some of my MCMS 2002 projects, I’ve noticed how powerful and helpful regular expressions can be. One such case is when you’re working on a navigation component. You could walk the channel tree to find specific points within your site structure, checking against the path of the channel etc, or you could use regular expressions to do the checks for you.

When used correctly, they can have a very positive impact on your project. In one recent project, I was shocked to see the performance impact of going from a “channel tree walker” to regular expressions. The original “channel walker” solution used ASP.NET caching and the regular expression solution (which didn’t use any type of caching) was dramatically faster.

I’ve written up an article explaining how you can use regular expressions in your MCMS project. In this article I reference the above mentioned project and show screenshots of the regular expressions in action!

Andrew Connell
Developer & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web & cloud developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to helping you be the best Microsoft 365 web & cloud developer. He lives with his wife & two kids in Florida.

Share & Comment