I am wondering if someone could help me with either a regex or substring options.
I have a string:
Line1 ("Application", "People", "people DB", "PP01", 1, X, "Y")]
PP01 - People
Assuming that all your lines are structured the same ..
Line1("Application", "People", "people DB", "PP01", 1, X, "Y")]
Line2("Application", "People", "people DB", "PP02", 2, X, "Y")]
Line3("Application", "People", "people DB", "PP03", 3, X, "Y")]
.. you could also make use of the string methods .Replace() and .Split():
string str = "\"Application\", \"People\", \"people DB\", \"PP01\", 1, X, \"Y\"";
string[] parts = str.Replace("\"", string.Empty)
.Split(new string[] { ", " }, StringSplitOptions.None);
Console.Write(parts[3] + " - " + parts[1]);
Output would be: PP01 - People