title: Matching Nested Structures With Regular Expressions in Python
body: <p>I seem to remember that Regular Expressions in DotNet have a special mechanism that allows for the correct matching of nested structures, like the grouping in "<code>( (a ( ( c ) b ) ) ( d ) e )</code>". </p>
  
  <p>What is the python equivalent of this feature? Can this be achieved using regular expressions with some workaround? (Though it seems to be the sort of problem that current implementations of regex aren't designed for)</p>