List <string> l = new List <string>(){
"myRegex1",
"myRegex2",
"myRegex3",
"myRegex4",
"myRegex5",
"myRegex6"
};
foreach (string r in l){
Regex r1 = new Regex(r);
Match m1 = r1.Match(project.Variables["httpPost"].Value);
if (m1.Success){
return(m1.Value.ToString());
}
}
return "not found";