// Read all text from file string sData = File.ReadAllText(@"c:/file.txt"); // Match strings between " " Match match = Regex.Match(sData, "\"(\\w|\\d|\\s|\\\")*\"", RegexOptions.IgnoreCase); // Read results and strip " out of them foreach (var sResult in match) { sResult = sResult.Remove(0, 1).Remove(sResult.length - 2, 1); // Do whatever with sResult }
MatchCollection matches = Regex.Matches(... foreach (Match match in matches) { string sResult = match.Value ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)