title: How to grep for same pattern multiple times in a string using python?
body: <p>I am using python to pattern match a string multiple times in a string.
  Problem:</p>
  
  <pre><code>string = 'The value = 1 The value = 2 The value = 3'
  </code></pre>
  
  <p>I want to grep only value but my output should be like:</p>
  
  <pre><code>['value = 1 value = 2 value = 3']
  </code></pre>
  
  <p>I am doing like this:</p>
  
  <pre><code>pattern = re.compile('[value = (\d+)]*')
  values = pattern.search(string)
  values.group(0)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>'' 
  </code></pre>
  
  <p>i.e NULL (no match)</p>
  
  <p>Please help me give the right regular expression to grep the required output.</p>