You do realize what the Regex.Split function does, don't you? That it extracts the matched data and splits the rest of the input string?
So
string input = "hello;there;paul";
File.WriteAllLines(@"D:\Temp\op.txt", Regex.Split(input, ";");
Would produce a file completely lacking in semicolons?
hello
there
paul
I suspect from your description that you want to extract the emails and phone numbers: so use the MatchCollections you created earlier, a couple of
foreach
loops and write the text from there...