title: Regex for extracting build number from Copy artifacts plugin in Jenkins
body: <p>I have a Jenkins build that copies an artifact from another build.</p>
  
  <p>Using <a href="https://wiki.jenkins-ci.org/display/JENKINS/Description+Setter+Plugin" rel="nofollow">description setter plugin</a> I want to extract the build number from which I take the artifact.</p>
  
  <p>The log file contains this line :</p>
  
  <p><code>Copied 1 artifact from "Mybuild" build number 569</code></p>
  
  <p>I need to use regex to extract only the integer <code>569</code> (can be any int). Also the <code>1</code> can be any int and <code>Mybuild</code> can be any string (but no spaces, one word). I can assume the words <code>Copied, artifact, from, build, number</code> are constant and always appear</p>
  
  <p>I have tried to match a regex, but with no luck. Also tried some regex generator websites but no luck either.</p>
  
  <p>Thanks.</p>