In a rich text box i have differents string such as :
show tables;
show database;
show status;
So if i want to do execute all command I'll create one array string doing
string [] commands = richtextbox.Text.Split(';');
now in commands I'll have :
commands[0] = "show tables";
commands[1] = "show databases";
commands[2] = "show status";
And it works fine! The problem is the following:
show database;
insert into table_x values ("string;s","id_s",1);
insert into table2_x values ("s;s",1);
Now if I'll do the split I'll break the second and third command. I'm thinking about regular expression but how can apply to the split function? How can I fix that? Thanks in advance.