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
ali tuncerPosted Mar 29, 2016, 11:36 AM
MatchCollection mc = Regex.Matches(test, @"(?<=\~\^).*?(?=~[^x]|x$)");
foreach (Match m in mc)
{
Console.WriteLine(m.Value.Replace("~"," "));
}
dbz dbzPosted Mar 29, 2016, 6:24 AM
Kashif SohailPosted Mar 27, 2016, 6:17 AM
dbz dbzPosted Mar 27, 2016, 12:37 AM
Kashif SohailPosted Mar 27, 2016, 12:06 AM
dbz dbzPosted Mar 27, 2016, 12:01 AM
Kashif SohailPosted Mar 26, 2016, 11:58 PM