CODE:
string s = "My Dialog{Editing Writes: 0};"+formatic(13)+formatic(10)+
"Bot One{Start_Script: False|Visual Window: False};"+formatic(13)+formatic(10)+
"Bot Two{Start Script: False|Visual Window: False};"+formatic(13)+formatic(10)+
"Bot Three{Start Script: False|Visual Window: False};";
//messagebox(s);
string row[99], text_box, text[99];
int count_box=regexsearch(sizearray(row), #row[0], s, "[^\r\n]+", MULTILINE);
messagebox(count_box);
for(int i=0; i<count_box; i++)
{
if(regexsearch(1, #text_box, row[i], "^[^\{]+"))
{
messagebox(text_box);
regexreplace(1, #row[i], row[i], text_box, "");
regexreplace(1, #row[i], row[i], ";$", "");
int count_text=regexsearch(sizearray(text), #text[0], row[i], "[^\{\}\|]+");
for(int j=0; j<count_text; j++)
{
messagebox(text[j]);
}
}
}
"Bot One{Start_Script: False|Visual Window: False};"+formatic(13)+formatic(10)+
"Bot Two{Start Script: False|Visual Window: False};"+formatic(13)+formatic(10)+
"Bot Three{Start Script: False|Visual Window: False};";
//messagebox(s);
string row[99], text_box, text[99];
int count_box=regexsearch(sizearray(row), #row[0], s, "[^\r\n]+", MULTILINE);
messagebox(count_box);
for(int i=0; i<count_box; i++)
{
if(regexsearch(1, #text_box, row[i], "^[^\{]+"))
{
messagebox(text_box);
regexreplace(1, #row[i], row[i], text_box, "");
regexreplace(1, #row[i], row[i], ";$", "");
int count_text=regexsearch(sizearray(text), #text[0], row[i], "[^\{\}\|]+");
for(int j=0; j<count_text; j++)
{
messagebox(text[j]);
}
}
}