//------------------------------------------------------------------------------ public bool ParseOrderHeaderInformation(string input) { OrderDate = RegexParser.ParseDateString(OrderDateRegex, input); if (OrderDate == null) { return(false); } DateRequired = RegexParser.ParseDateString(ReqDateRegex, input); if (DateRequired == null) { return(false); } PurchaseCode = RegexParser.ParseString(PurchaseCodeRegex, input); BillTo = Convert.ToInt32(RegexParser.ParseString(BillToRegex, input)); OrderNote = RegexParser.ParseString(CommentRegex, input); return(true); }