Port window csv parsing to regex object