title: maxsplit functionality for regex split
body: <p>I have a string like this</p>
  <pre><code>aa = 'nilesh-sharma-is-learning-python'
  </code></pre>
  <p>Now I want to split this string for <code>-</code> delimiter and with <code>max_split</code> 3 times.
  It can be easily do like this</p>
  <pre><code>In [35]: aa.split('-',3)
  Out[35]: ['nilesh', 'sharma', 'is', 'learning-python']
  </code></pre>
  <p>Using regex also we can split the string</p>
  <pre><code>In [36]: re.split('-',aa)
  Out[36]: ['nilesh', 'sharma', 'is', 'learning', 'python']
  </code></pre>
  <p>How can I implement <code>max_split</code> functionality in case of regex split ?</p>