Help needed in parsing method name which has specific attribute.
Rules:
1) All the methods attributed with minimum '[Test' should be listed.
2) methodName will have a space character before the name and '(' symbol at the end of the name. Most likely next line to the Test attribute or on the second line.
Sample 1:
[Test]
public Type methodName(parametes ...)
Sample 2:
//[Test]
public Type methodName(parametes ...)
Sample 3:
[Test (, some names etc)]
public Type methodName(parametes ...)
Sample 4:
[Test (, some names etc)]
[Other optional attributes]
public Type methodName(parametes ...)
Expected Result: methodName
I tried couple of suggestions like this Regex Match all characters between two strings. But, not successful.