title: Single line delimited text
body: <p>I have a single line text containing an invoice's rows, extracted from a pdf.</p>
  
  <p>I should parse it, getting rows as output tokens.</p>
  
  <p>Here's a snippet:</p>
  
  <blockquote>
    <p>1 NR 0PR 18OV DHO1O154 OCCHIALE ACETATO DONNA VISTA 1 NR 0PR 18OV
    NAG1O152 OCCHIALE ACETATO DONNA VISTA 1 NR 0PR 61QV 7AX1O156 OCCHIALE
    METALLO UOMO VISTA Descrizione Causale Vendita 2 NR 0AN4007 41 / 87 66
    OCCHIALE NYLON UOMO SOLE Descrizione Causale Vendita 1 NR 0EA4001
    50638G56 Valeria OCCHIALE NYLON UOMO SOLE Descrizione Causale Vendita
    - Pag 1 di 3 - Segue - 1 NR 0PO3042S 972 / M351 Sofia OCCHIALE ACETATO UOMO SOLE Descrizione Causale Vendita 1 NR 0AN3048 502 / 8G30 Valeria
    OCCHIALE METALLO UOMO SOLE Descrizione Causale Vendita 6 NR 0DG4204
    27648764 OCCHIALE ACETATO UOMO SOLE Descrizione Causale Vendita 1 NR
    0OX3123 31230453 Valeria OCCHIALE ACCIAIO UOMO VISTA</p>
  </blockquote>
  
  <p>I want to get, as a token, for example the first: </p>
  
  <p><em>1 NR 0PR 18OV DHO1O154 OCCHIALE ACETATO DONNA VISTA</em></p>
  
  <p>Explained, my token should be: </p>
  
  <ul>
  <li>starting with <em>integer</em>+*space*+NR+<em>space</em></li>
  <li>containing whatever I can find after the start, strings, numbers, whatever...</li>
  <li>ending before: the next "X+NR" starting token, fixed strings (such as "Descrizione Causale Vendita") or the end of file.</li>
  </ul>
  
  <p>Using this regex <code>(\b\d+\b NR)</code> I can match all the X+NR starting tokens, how can I select the next part, before the next X+NR token?</p>
  
  <p>Notice the title! I have all in one single line, so... <em>no new lines separators</em>!</p>
  
  <p>Thank you</p>