So I have this piece of code:
elseif ((%%factorn == 100) && (%%landcd != "5022")){
%%tekstsplit = sgapiPregSplit("/[#]+/",sgapiGetValue(17));
foreach (%%tekstsplit as %%output) {
%%testsplit = sgapiPregSplit("/[|]+/",%%output);
foreach (%%output as %%result){
%%boodschap .= "<" . %%result,0 . ">" . %%result,1 . "</" . %%result,0 ">";
}
}
}
It should split the following text: h3|Title text#p|paragraph text. The first part works as I tested that one apart, it gave me: h3|title text p|paragraph text. 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:
Title text
Paragraph text
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.