title: Parsing method names out of javap with ruby
body: <p>So currently im writing a ruby script to parse out method names from the list given to me after I run javap on a .class file. I have a feeling a regex (regular expression) is the only way to accomplish this but I wanted the community input before I attempted this.</p>
  
  <p>So for instance the following methods are given to me by javap:</p>
  
  <pre><code>public String foo()
  public int bar()
  </code></pre>
  
  <p>I would only want the foo and bar from that list, how would I go about extracting those only? Is regex the best way? </p>