Hello,
Basically I'm doing something in NSTask, and I need to parse the output for something specific. The output of the NSTask would look something like this:
What I'm looking to do is grab <appID02 2EF30775-0F9D-465F-B012-283C695CB668 />
I would presume there must be way to get a string from @"<appID02" to @"/>", but my eyeballs are about to explode looking for it. Any pointers?
Basically I'm doing something in NSTask, and I need to parse the output for something specific. The output of the NSTask would look something like this:
Code:
2010-05-28 18:28:22.256 someapp[91359:903] owner is: someuser
2010-05-28 18:28:22.300 someapp[91359:903] <appID01 B6977A4E-782D-48AA-8F7D-395388493F4E /> <appID02 2EF30775-0F9D-465F-B012-283C695CB668 />
What I'm looking to do is grab <appID02 2EF30775-0F9D-465F-B012-283C695CB668 />
I would presume there must be way to get a string from @"<appID02" to @"/>", but my eyeballs are about to explode looking for it. Any pointers?