title: Regex for digits and a plus sign
body: <p>The conditions of the regex are as follows:</p>
  
  <p>Starts with either digits or a '+' sign and ends with digits.</p>
  
  <p>This is going to be used to validate a certain type of number. What I got so far is:</p>
  
  <pre><code>/^\d*|\+\d*$/
  </code></pre>
  
  <p>This regex seems to match any string though. How would a regex that matches my conditions look like?</p>
  
  <p>The regex will be used in a JavaScript function.</p>