title: What is the regex for finding a of a piece of text in a particular format
body: <p>What is the regex for finding if a piece of text is in a particulate format?</p>
  
  <p>Format should follow:
  <code>AAAA-123</code> or <code>AAAA123</code> (with or without the dash)</p>
  
  <p>Where the first 4 characters are letters in the range A-M and the following  3 characters are numbers with a max of 299.</p>
  
  <p>Example:</p>
  
  <p><code>ABCD-299</code> would match </p>
  
  <p>and</p>
  
  <p><code>ABZR-301</code> would not match</p>