title: Replace conditional operator with if/else automatically?
body: <p>A specific JS parser (not in my control) does not understand nested conditional operator syntax like this:</p>
  
  <pre><code>return num === 1 ? condition ? condition : something : something;
  </code></pre>
  
  <p>Hence, I would like to <strong>replace all conditional operators (simple and nested) in a file with if/else blocks</strong>. How do I go about it? (A regexp for Textmate or similar would be helpful.)</p>