Help with regex pulling XML data from response body in PHP
Posted
by spdaly
on Stack Overflow
See other posts from Stack Overflow
or by spdaly
Published on 2010-05-24T13:00:57Z
Indexed on
2010/05/24
13:21 UTC
Read the original article
Hit count: 211
I am working on a project that pulls data from JMS queue using PHP and Zend Framework. The HTTP client response is below. All I need is the XML string.
I came up with /(.*)<\/RequestDetails>/gs which tests ok on http://gskinner.com/RegExr/ but the preg_match call is returning an empty matches array.
I'm going to continue to hunt around for a pattern, but thought I would post here as well.
Thanks to all who read, etc...
Steve
UPDATE: I can't get the code to paste correctly. Here's a link to a pastbin: http://pastebin.com/rQxzcfSg
© Stack Overflow or respective owner