i have scenario in text file there multiple xml records other data well. wrote regex code in foreach in c# extract xml.below code.
foreach (match match in regex.matches(file.readalltext(file), @"<root>(?<sender>.*)</root>")) {}
the problem facing is not iterating on whole file picking few records.
is there wrong in regex or other problem there.
try this,
foreach (match match in regex.matches(file.readalltext(file), @"<root>[.\s]*<\/root>")) {}
Comments
Post a Comment