title: Regex C# - how to match methods and properties names of a class
body: <p>I want to match methods name (with parameters) and properties name. I dont want to include accessors in match.
  For example i got this kind of class:</p>
  
  <pre><code>public class test
  {
      public static string NA = "n/a";
  
      public static DateTime DateParser(string dateToBeParsed)
      {
          DateTime returnValue = new DateTime();
          DateTime.TryParse(dateToBeParsed, GetCulture(), System.Globalization.DateTimeStyles.AssumeLocal , out returnValue);
          return returnValue;
      }
  }
  </code></pre>
  
  <p>For class name I'm using this kind of regex: <strong>(?&lt;=class\s)[^\s]</strong>+ for methods im trying something like this: <strong>[^\s]+(?=()</strong> but this will select all that text that has <strong>(</strong>. For methods i need to select that line that has <strong>(</strong> and accessors like public,private and protected. How to do it without including this in final match ? I need only method name and parameters within parenthesis.</p>