Extract ClassName using Regular Expression
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hi, i want to extract only the class names from a C# file.. i have a pattern like this.. pattern: "\\s*(namespace|class)[^{]*" but it gives matches along with the namespace and class keyword.. i want a pattern that can extract only class|namespace names from the lines that are not commented in the source code.. plz help. regards, nas