title: Can Regex groups and * wildcards work together?
body: <p>Is there any way to combine groups and the * features of regular expressions to act kindof like a tokenizer / splitter.  I tried this:</p>
  
  <pre><code>my_str = "foofoofoofoo"
  pattern = "(foo)*"
  result = re.search(pattern, my_str)
  </code></pre>
  
  <p>I was hoping my groups might look like</p>
  
  <pre><code>("foo", "foo", "foo", "foo")
  </code></pre>
  
  <p>But it does not.  I was surprised by this because the ? and group features do work together:</p>
  
  <pre><code>my_str= "Mr foo"
  pattern = "(Mr)? foo"
  result = re.search(pattern, my_str)
  </code></pre>