using System.Text.RegularExpressions;
public static void Main()
var test = new Regex(@",\s*(?<state>[a-zA-Z]+)\s*,\s*(?<zip>[0-9]{5})");
var input = @"Shipping Address
1585 hemlock street, Eugene
var match = test.Match(input);
Console.WriteLine("State: " + match.Groups["state"]);
Console.WriteLine("Zip: " + match.Groups["zip"]);