$p= qr/RESPONSE\sid="([^"]+?)" .* #random XML disposition="([^"]+?)" .* #random XML (?:.*(?=U)(?:URL="([^"]+?)")?)* /sx;