I have String of XML nodes (Not the XML File) and I am using below regex which returns the return array. I am looking for a regex which should return the return as a single result string as: 'SUSTED' (SU - from 'abc' node and STED from 'xy' node). Can you please help me with this?
Regex: /<abc>(.*)<\/abc><xy>>(.*)<\/xy>/i
XML String: some junk string not useful so would like to ignore this. param :<root><abc>SU</abc><ab>SDD</ab><xy>STED</xy></root>
some more junk strings, so need to ignore this too...