// Текст для обработки
string text = project.ExecuteMacro(project.Variables["get"].Value);
var errorIfEmpty = false;
var regexGroups = Macros.TextProcessing.Regex(text, @"(?<=\ "zipCode":\ ").*(?=",)", "0");
if (regexGroups.Count == 0)
{
if (errorIfEmpty) throw new Exception();
}
else
{
project.Variables["city"].Value = regexGroups[0].FirstOrDefault();
}