title: Regular expression for any number or NULL value
body: <p>I currently have a reg ex that reads in just the score of the home and away team and only registers taking numbers. I want to accept null values however, to store fixtures.</p>
  
  <p>Im not certain which flavor of regex im using, but for sure it isn't PCRE. Apologies for the lack of information, its been a while since i touched this Regex specific pattern.</p>
  
  <pre><code> private static final Pattern FIXTURES_REGEX = Pattern.compile("\\{\"fixture_id\".*?\"homeTeam_id\":\"?(\\d+)\"?,\"awayTeam_id\":\"?(\\d+)\"?,.*?\"goalsHomeTeam\":\"?(\\d+)\"?,\"goalsAwayTeam\":\"?(\\d+)\"?,.*?\"firstHalfStart\":\"?(\\d+)\"?");
  </code></pre>
  
  <p>This is the regex im currently working with, but to relate to exactly what i need to change, is the phrase:</p>
  
  <pre><code>.*?\"goalsHomeTeam\":\"?(\\d+)\"?
  </code></pre>
  
  <p>Which only selects numbers from this value. I then pass this regex through a matcher and use a loop to .find the correct values.</p>
  
  <p>An example of the data i would be reading is:</p>
  
  <pre><code>"goalsHomeTeam":"2"
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>"goalsHomeTeam":NULL
  </code></pre>
  
  <p>Many thanks,
  Luke</p>