Could someone help me with a PCRE regex for the following.
From: <Saved by Microsoft Internet Explorer 5>
Subject: Amazon.co.uk: Search Results All Products: children in war
Date: Mon, 1 Dec 2003 21:24:49 -0000
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_008F_01C3B851.8D341B90"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
This is a multi-part message......etc. etc.
The bit I want to match is the "----=_NextPart_000_008F_01C3B851.8D341B90" bit. At the moment I have the following, but it doesn't seem to work.
preg_replace("/.*boundary=\"(\S+)\".*/", "\\1", $input);
Thanks in advance!