title: Defining html and text with preg_split
body: <p>So I have this piece of code:</p>
  
  <pre><code>elseif ((%%factorn == 100) &amp;&amp; (%%landcd != "5022")){
         %%tekstsplit = sgapiPregSplit("/[#]+/",sgapiGetValue(17));
        foreach (%%tekstsplit as %%output) {
          %%testsplit = sgapiPregSplit("/[|]+/",%%output);
          foreach (%%output as %%result){
            %%boodschap .= "&lt;" . %%result,0 . "&gt;" . %%result,1 . "&lt;/" . %%result,0 "&gt;"; 
              }    
          }
       }
  </code></pre>
  
  <p>It should split the following text:
  <em>h3|Title text#p|paragraph text.</em>
  The first part works as I tested that one apart, it gave me:
  <em>h3|title text p|paragraph text.</em>
  Now the next step should be to split the results and work them out as I stated in the code above.
  Which would eventually give me:</p>
  
  <p><h3>Title text</h3> <p>Paragraph text</p></p>
  
  <p>I'm working this out in SurveyGizmo, hence the somewhat different code. Please be aware that I do not have the possibility to use a parser of some sort.
  Suggestions are welcome.</p>