Регулярное выражение для извлечения данных из строки в BizTalk orchestration
привет ,
Я должен извлечь несколько строк из приведенной ниже строки в BizTalk orchestration :
строка :
Message : Microsoft.XLANGs.Core.XlangSoapException: An error occurred while processing the message, refer to the details section for more information Message ID: {qewewqeweA-wqeF-4wewqe7-eqewq-4qweqewqeqe} Instance ID: {Bqweqweqw-qwewqe-ewqqeqwe-wqewqeqwewq-qweqwewqeqwewqewqewqewqE} Error Description: Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The input data for the field/parameter PersonalMobile_CountryCode is larger than that allowed on the SQL Server. Maximum length allowed is 10, length found was 12. Server stack trace: at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
ожидаемый вывод : описание ошибки: Microsoft.Сервис-модель.Каналы.Common.XmlReaderParsingException: входные данные для поля/параметра PersonalMobile_CountryCode больше, чем разрешено на SQL Server. Максимальная разрешенная длина - 10, найденная-12.
Что я уже пробовал:
created two varibales : obRegularExp of type : System.Text.RegularExpressions.Match sNotification =System.String obRegularExp = System.Text.RegularExpressions.Regex.Match(Ex.InnerException.Message,"Error Description:(.*)"); sNotification = obRegularExp.Value.Replace("Error Description:", ""); But i am not bale to fetch the data with this expression. Can anyone helpe me on this to get the expected data in a single line without new line character in it.