title: Regular Expression(^string\s\w+) in python
body: <p>I'd like to know how to search using regular expression.</p>
  
  <p><strong>this is my code</strong></p>
  
  <pre><code>import re
  data = "python one test code"
  p = re.compile("^python\s\w+")
  </code></pre>
  
  <p><strong>result</strong></p>
  
  <pre><code>print(p.findall(data))    
  ['python one']
  </code></pre>
  
  <p><strong>The result I want to get is as below</strong></p>
  
  <pre><code>print(p.findall(data))
  ['python one test code']
  </code></pre>
  
  <p><strong>I can get the above result if as below</strong></p>
  
  <pre><code>p = re.compile("^python\s\w+\s\w+\s\w+")
  </code></pre>
  
  <p>but I don't want to repeat "\s\w+" like as "^python\s\w+\s\w+\s\w+"</p>
  
  <p>How can I get the result using * or + in "\s\w+" ?</p>