title: REGEX Pattern skips every other entry
body: <p>I have two REGEX patterns to read MGRS grid coordinate data entered by a user. One is for no spaces:</p>
  <pre><code>/\d{1,2}[^ABIOYZabioyz][A-Za-z]{2}([0-9][0-9]){0,5}/g
  </code></pre>
  <p>example coordinates entered would be:</p>
  <ul>
  <li>41ULB1782314279</li>
  <li>39UXV1859553744</li>
  <li>38UPG0622505396</li>
  </ul>
  <p>whitespace separated or comma separated works fine.</p>
  <p>And the other is for spaces in the coordinate:</p>
  <pre><code>/\d{1,2}[^ABIOYZabioyz]\s?[A-Za-z]{2}\s?([0-9]{0,5}\s?[0-9]){0,5}/g
  </code></pre>
  <p>Examples grids would look like:</p>
  <ul>
  <li>31P DL 90780 43331</li>
  <li>31P DL 9079 4333</li>
  <li>31P DL 907 433</li>
  <li>31P DL 90 43</li>
  <li>31P DL 9 4</li>
  </ul>
  <p>The issue with the regex pattern looking for grid coordinates with spaces in them is that it is seeming to skip over every other coordinate entered, or skip coordinates randomly.
  I'm still new to REGEX and am not seeing where my issue is. The second REGEX pattern which looks for spaces is exactly identical to the one without spaces other than the fact I added in a few places to look for white space.</p>
  <p>It works fine when users add commas between the grid coordinates with spaces in them, but if they only separate the grids with white space it skips over grids.</p>
  <p>Any help would be appreciated as I have been at this for the better part of a day.</p>