Preface: This question is a derivative of this question.
Here is my code:
using System;
using System.Linq;
using System.Text.RegularExpressions;
c
Use negative lookbehind, positive lookbehind, character class with quanitifer, positive lookahead, and negative lookahead.
Working Demo
using System;
using System.Linq;
using System.Text.RegularExpressions;
class MainClass {
public static void Main (string[] args) {
const string rawLine = "\"TeamName\",\"PlayerName\",\"Position\" \"Chargers\",\"Philip Rivers\",\"QB\" \"Colts\",\"Peyton Manning\",\"QB\" \"Patriots\",\"Tom Brady\",\"QB\"";
var parsedLines = Regex.Split(rawLine, "(?