RegEx to parse VB.NET source (STILL NEED ANSWER PLEASE)
-
As an excercise in regex, I'm trying to parse various elements of VB Source, so please don't recommend I buy Programmar, or some such tool, coz I won't learn anything. I also have Expresso. OK, I am trying to capture code in a namespace, even if there are nested namespaces, so given the text of... Namespace First Enum FirstEnum MyVal End Enum Namespace Second Enum SecondEnum MyVal End Namespace End Namespace I would expect to be able to get the outer namespace as one capture and the inner namespace as a second capture. Any straightforward pasting of a regex which works, rather than splinters of things you think might work, would be really appreciated. Explanations of how they work would be a bonus, but expresso's analyzer will help me understand to some extent. Thanks guys and have a great XMAS. Nursey