We are attempting to make a change log of Microsoft KBase updates we are applying during out normal Maintenance Cycles. We want to parse the information below for particular Lines. The Sample is below:
Operation : 1
ResultCode : 2
HResult : 0
Date : 10/7/2014 10:27:50 AM
UpdateIdentity : System.__ComObject
Title : Update for Microsoft Silverlight (KB2977218)
Description : This update to Silverlight improves security, reliability, accessibility support, startup performance, enhances line-of-business support and includes several fixes to better support rich internet applications. This update is backward compatible with web applications built using previous versions of Silverlight.
UnmappedResultCode : 0
ClientApplicationID : AutomaticUpdates
ServerSelection : 1
ServiceID :
UninstallationSteps : System.__ComObject
UninstallationNotes :
SupportUrl : http://go.microsoft.com/fwlink/?LinkID=105787
Categories : System.__ComObject
Our Desired output is:
Title : Update for Microsoft Silverlight (KB2977218)
Date : 10/7/2014 10:27:50 AM
Description : This update to Silverlight improves security, reliability, accessibility support, startup performance, enhances line-of-business support and includes several fixes to better support rich internet applications. This update is backward compatible with web applications built using previous versions of Silverlight.
I am trying to write a simple C# application that we would paste the raw data into a Rich text box click a button and have the desired output in another Rich text box. There is a pattern of "Keyword : Data" that might be useful.
I have the form created and the elements on the form. I have attempted to find a method that will search for the keyword but this would not yield a result we seek. We want the Keyword or Line so to speak and as you can see the description could be multiple lines.
I currently don't have any sample code to post as I don't know where to begin given this task. Any sample code would be helpful to accomplish this task.