title: Find the longest line starting with specific word(s)
body: <p>In my project I try to find the occurrences with the longest method name.</p>
  <p>For example</p>
  <pre><code>private function anyVeryLongMethodName($param ...);
  
  public function anyEvenLongerMethodName()
  
  protected function ...()
  </code></pre>
  <p>I already found something like</p>
  <pre><code>^.{100,}$
  </code></pre>
  <p>which will not show exactly the longest match but will give a manageable result set when playing around with the count</p>
  <p>Unfortunately, it does not consider starting with <code>public/private/protected function</code></p>
  <p>Is there an appropriate regex doing this job?</p>