
ralperl
New User
Aug 14, 2011, 9:42 AM
Post #1 of 2
(4746 views)
|
Regexp to parse XML input returned
|
Can't Post
|
|
HI, Am fairly new to using regexp - and am trying to capture and parse some input from XML received in simialr format to following <Service>YldCurves</Service> <Host>lnqds1a</Host> <Admin>21521</Admin> I want to only extract the actual value for both HOst and Port - ignoring the tags - have tried various options using regexp most basic being m/Host(.*?)Host/ Is this approach possible? Or woudl I be better outputting to a file - then using other options to capture value such as grep etc? Any feedback much appreciated Thanks, Ral
|