Hi Guys,
I'm a newbie in c# programming and sideways working on some personal projects which help me to learn c# faster and with new ideas.
So i'm stuck on a issue where i have a text file from which i need to retrieve some data and display on winform.
~ba~bcas~asdasda~~~~~^123~xxxxx~sas~asda~fsdf~^234~xxxx~asas~fdafd~dfsdf~fadsfads~^789~xxx
so on...
Above data is from my text file from which i need it to be displayed like this :-
123 xxxx
234 xxxx
789 xxxx
I tried split but didn't getting any success. as i can get my hands on ^(Value) but not after that..
Can any body tell how to do it.
Please and Thanks

Kashif SohailRank #1,613 · 967 reputationPosted Mar 26, 2016, 7:58 PM EDT
dbz dbz14 reputationPosted Mar 26, 2016, 8:01 PM EDT
Kashif SohailRank #1,613 · 967 reputationPosted Mar 26, 2016, 8:06 PM EDT
dbz dbz14 reputationPosted Mar 26, 2016, 8:37 PM EDT
Kashif SohailRank #1,613 · 967 reputationPosted Mar 27, 2016, 2:17 AM EDT
dbz dbz14 reputationPosted Mar 29, 2016, 2:24 AM EDT
ali tuncerRank #1,499 · 1.1K reputationPosted Mar 29, 2016, 7:36 AM EDT
MatchCollection mc = Regex.Matches(test, @"(?<=\~\^).*?(?=~[^x]|x$)");
foreach (Match m in mc)
{
Console.WriteLine(m.Value.Replace("~"," "));
}