title: Regular expression to find first match only
body: <p>I have this text :-</p>
  
  <pre><code>SOME text, .....
  Number of successes: 3556
  Number of failures: 22
  Some text, .....
  Number of successes: 2623
  Number of failure: 0
  </code></pre>
  
  <p>My requirement is to find the first occurrence of this pattern "Number of successes: (\d+)" which is Number of successes: 3556.
  But the above expression returns subsequent matches as well. </p>
  
  <p>I want the regular expression to  do this for me, unlike in java where i can use loop to iterate.</p>
  
  <p>Can anyone help me with a regular expression that can find the first occurrence only.</p>