title: Regex dynamic string manipulation
body: <p>Im aiming for a regex formula to return chunks of a string based on a character, if this string contains L1 then its going to be only one chunk, if L2 is found it would return 2 chunks, L3 = 3 chunks.</p>
  
  <p>Example</p>
  
  <p>Lets assume we have this string</p>
  
  <pre><code>"L2N1N1"
  </code></pre>
  
  <p>and we would like to get 2 string</p>
  
  <pre><code>"L2N1" and "L2N1N1"
  </code></pre>
  
  <p>Another example</p>
  
  <pre><code>"L3N1N1N2"
  </code></pre>
  
  <p>to return 3 strings</p>
  
  <pre><code>"L3N1" "L3N1N1" "L3N1N1N2"
  </code></pre>
  
  <p>Im using Ruby</p>