Skip to content
Advertisement

Extract desired substring from a string

I want to remove all the raw data before and after the specific tag. e.g I have data in a variable like

I want to remove all raw data before <LicensingReportProcessResult tag and after tag I want result like this:

I have done so far

Advertisement

Answer

Some fairly straight forward string searching and cutting will find your desired result:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement