title: regular expression split : FutureWarning: split() requires a non-empty pattern match
body: <p>I am getting a warning in Python 3 version when I use <code>split()</code> command as follows:   </p>
  
  <pre><code>pattern = re.compile(r'\s*')
  match = re.split(pattern, 'I am going to school')
  print(match)
  </code></pre>
  
  <blockquote>
    <p>python3.6/re.py:212: FutureWarning: split()
    requires a non-empty pattern match.   return _compile(pattern,
    flags).split(string, maxsplit)</p>
  </blockquote>
  
  <p>I don't understand why I am getting this warning.</p>