title: parsing objdump output
body: <p>I was wondering if someone here had written/uses a script which parses the output of <code>objdump</code> and extracts opcodes from it? I have a very very trivial implementation but I'm looking for something better.</p>
  
  <p><strong>The problem I am facing with this script</strong> is simply that it does simple string parsing; this is more of a utility script, and thats why I haven't written tests for these. I was wondering if the same could be done by writing a custom made parser or a simple yet efficient regular expression.</p>
  
  <p>This query is for the purpose of learning, so that I can approach such a problem in a (hopefully)better manner next time.</p>
  
  <p>I don't mind the specifics of the implementation(shell,ruby,python,perl; anything would do). The code does not even matter that much, really, I'd like a few hints on how you would do it.</p>