need help with Regex
Posted: Fri Jul 23, 2010 8:47 pm
Need some quick help with building a regular expression. Here is a sample of the soap message, I need to extract the URL between the 2 tag wsa:From & wsa:Address. ie i want "http://emf.abc.com/xyz/from/Adapter/" from the below message. Any suggestion ?
<s11:Header>
<wsa:MessageID s11:mustUnderstand="1">uuid:593C8EFC-76BA-11D9-AAC8-91EC5E497717</wsa:MessageID>
<wsa:To s11:mustUnderstand="1">http://emf.abc.com/xyz/to/Adapter/</wsa:To>
<wsa:From s11:mustUnderstand="1">
<wsa:Address>http://emf.abc.com/xyz/from/Adapter/</wsa:Address>
</wsa:From>
<wsa:ReplyTo s11:mustUnderstand="1"> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/a ... sa:Address>
</wsa:ReplyTo>
<wsa:FaultTo s11:mustUnderstand="1">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/a ... sa:Address>
</wsa:FaultTo>
</s11:Header>
<s11:Header>
<wsa:MessageID s11:mustUnderstand="1">uuid:593C8EFC-76BA-11D9-AAC8-91EC5E497717</wsa:MessageID>
<wsa:To s11:mustUnderstand="1">http://emf.abc.com/xyz/to/Adapter/</wsa:To>
<wsa:From s11:mustUnderstand="1">
<wsa:Address>http://emf.abc.com/xyz/from/Adapter/</wsa:Address>
</wsa:From>
<wsa:ReplyTo s11:mustUnderstand="1"> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/a ... sa:Address>
</wsa:ReplyTo>
<wsa:FaultTo s11:mustUnderstand="1">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/a ... sa:Address>
</wsa:FaultTo>
</s11:Header>