Help to write regular expression

Posted by Ockonal on Stack Overflow See other posts from Stack Overflow or by Ockonal
Published on 2010-04-25T19:42:37Z Indexed on 2010/04/25 19:53 UTC
Read the original article Hit count: 167

Filed under:
|

Hello, I have to get any text between:

Final-Recipient: RFC822; !HERE! Action

I need !HERE! from this example. There could be any string.

I tried something like:

$Pattern = '/Final-Recipient: RFC822; (.*) Action/';

But it doesn't work.

upd

Here is the string I'm trying to parse: http://dpaste.com/187638/

© Stack Overflow or respective owner

Related posts about php

Related posts about regexp