Regular expressions are a very powerful tool, but such expressions are often very cryptic. If you want to understand them, it is best to have colored pencils at hand to color-code the parts that belong together.
Thus, it is obvious to color-code regular expressions in Mathematica already during development, in order to add explanatory texts to the individual colored parts, explaining what they (should) do.
However, it is not possible to use such colored strings in RegularExpression in Mma: One gets then e.g. such an error message:
RegularExpression::msg8 (Range out of order in character class in RegularExpression...)
How can I teach RegularExpression to remove all color attributes contained in its search pattern and then continue as usual?