title: How to make article spinner regex?
body: <p>Let's say I have teh following:</p>
  
  <blockquote>
    <p>{{Hello|Hi|Hey} {world|earth} |
    {Goodbye|farewell} {noobs|n3wbz|n00blets}}</p>
  </blockquote>
  
  <p>And I want that to turn into any of the following:</p>
  
  <pre><code>Hello world 
  Goodbye noobs 
  Hi earth
  farewell n3wbz 
  // etc.
  </code></pre>
  
  <p>Paying attention to the way the "spinning" syntax is nested.  It could be nested a billion layers deep for all we know.</p>
  
  <p>I can do this easy, except once they're nested like the above example my regex messes up and the results are not correct.</p>
  
  <p>Could someone show an example in either a .NET language or Python please?</p>