Having a string read from a file having next content:
select 1 from dual;
select 2 from dual;
select 3 from dual;
I wanted to extract each select statement using next regexp:
Regex.Split(sqlS, @";\s+\n")
The resulted array contains all selects, but the last one has the semi-colon at the end which is what I want to avoid. I would like to be able to split a text which contains many selects each of them ending with semi-colon. Each select start on a new line.