Regular Expression Match Grouping
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hi, i'm trying to parse C# file and want to change the code.. i have a class with following lines of code, assume
class Test { public void method() { Foo.Bar = "Demo"; } }
i want to extract only the property name and its value.. i have a pattern like this.. which extract the value only, but i need the property name too..
"\\Foo.[^;]*(=\\s*\")(?<val>([^\"]*))";
plz give me a pattern which extract the both. regards, nas