How do I write more maintainable regular expressions?
Use Expresso which gives a hierarchical, english breakdown of a regex. Or This tip from Darren Neimke: .NET allows regular expression patterns to be authored with embedded comments via the RegExOptions.IgnorePatternWhitespace compiler option and the (?#…) syntax embedded within each line of the pattern string. This allows for psuedo-code-like comments to be embedded in each … Read more