Email:
Hello World 123 123
From: uSER001 [user001@yahoo.com]
Sent: Thursday, July 19, 2013 11:21 PM
To: ts@yahoo.com
Subject: Re: Ticketing System
Can be anything sd asd asd asd asda dasdasd asda asd
From: Ticketing System [ts@yahoo.com]
Sent: Thursday, July 19, 2013 11:21 PM
To: uSER001, uSER002
Subject: Ticketing System
Content From Ticketing System
Ticketing System http://www.yahoo.com
Output Should be: Hello World 123 123
From: uSER001 [user001@yahoo.com]
Sent: Thursday, July 19, 2013 11:21 PM
To: ts@yahoo.com
Subject: Re: Ticketing System
Can be anything sd asd asd asd asda dasdasd asda asd
--
Is this possible using preg_match($pattern,$data, $matches, PREG_OFFSET_CAPTURE)
and substr
?