If you want to just separate them why using regular expressions , and not using split function :
string s = "myName , age ";
List<string> fields = s.Split(',').ToList();
for (int i = 0; i < fields.Count; i++)
{
fields[i] = fields[i].Trim();
}
You can recognize commas with "
\s*[,]\s*
" as the RE pattern but I think that
Split
function will solve your problem.
Hope it helps.