---
title: "Comments in Regular Expressions"
url: "https://osherove.com/blog/2004/3/18/comments-in-regular-expressions.md"
canonical: "https://osherove.com/blog/2004/3/18/comments-in-regular-expressions.html"
published: "2004-03-18T14:03:00"
updated: "2004-03-18T14:03:00"
tags: [".Net Quotations"]
author: "Roy Osherove"
description: "Continuing my talk about Regex, it's good to be able to point to Darren , who is making a good point about commenting regular expressions, did you know you can do that? Read: Commenting Regular Expressions with C# and…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Comments in Regular Expressions

By Roy Osherove March 18, 2004 In [.Net Quotations](https://osherove.com/blog/category/net-quotations)

**Historical article** · Originally published March 18, 2004; technical details may be outdated.

Continuing my talk about Regex, it's good to be able to point to [Darren](http://blogs.regexadvice.com/DNeimke/archive/2004/03/14/754.aspx) , who is making a good point about commenting regular expressions, did you know you can do that?

Read:

[Commenting Regular Expressions with C# and VB](http://weblogs.asp.net/dneimke/archive/2003/09/23/28740.aspx)
[5 Habits for successful Regular Expressions](http://www.onlamp.com/pub/a/onlamp/2003/08/21/regexp.html)

And, yes, there's a whole [RegexBlogs](http://blogs.regexadvice.com/DNeimke/archive/2004/03/14/754.aspx) site, and I'm part of it. Unfortunately, I have been pretty silent on there :(

## More in .Net Quotations

[All posts in .Net Quotations](https://osherove.com/blog/category/net-quotations)

- Mar 18, 2004

    ### [A New Paradigm: "Continuations"?](https://osherove.com/blog/2004/3/18/a-new-paradigm-quotcontinuationsquot.html)

- Mar 18, 2004

    ### [Important Developer Implications: Windows XP Service Pack 2](https://osherove.com/blog/2004/3/18/important-developer-implications-windows-xp-service-pack-2.html)

- Mar 18, 2004

    ### [Unit testing and test driven resources](https://osherove.com/blog/2004/3/18/unit-testing-and-test-driven-resources.html)

- Mar 16, 2004

    ### [Some links I need to remember](https://osherove.com/blog/2004/3/16/some-links-i-need-to-remember.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
