title: Trying to match number with a symbol
body: <p>I have a block of text that reads something like the following:</p>
  
  <blockquote>
    <p>Claw. Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit:
    14 (2d6 + 7) slashing damage plus 7 (2d6) cold damage.</p>
  </blockquote>
  
  <p>I am trying to match the <code>+11</code> which may also be <code>-3</code> or something like that. My current regex pattern is <code>[+-−]\d+</code> which does get the <code>+11</code> but it does also match the 5 and the 7. </p>
  
  <p>I have been using regexr.com to help me, but my novice level of using regex is making it rather complicated for me to figure out.</p>
  
  <p>So my question is, using regex is there a way to match the +11 but not the <code>5</code> or <code>7</code>?</p>
  
  <p>Okay, so I got this to work <code>(\+|\-|\−)\d+</code> but am going to leave this open to see if anyone offers a better solution.</p>