Thanks for the tip, i'll incorporate that in my own codebase

On Feb 20, 2013, at 10:08 AM, Locke wrote:

> In README.md:
> 
> > @@ -89,7 +89,13 @@ multiple lines.  GMail breaks up any lines over 80 characters for you.
> >      wrote:
> >      > blah
> >  
> > -Not to mention that we're search for "on" and "wrote".  It won't work
> > +
> > +The above 'On ....wrote:' can be cleaned up with the following regex:
> > +```
> > +$fragment_without_date_author= preg_replace('/On(.*?)wrote:(.*?)$/si', '', $fragment->getContent());
> I've found that
> 
> $fragment_without_date_author = preg_replace('/\nOn(.*?)wrote:(.*?)$/si', '', $reply_message);
> is better because it won't catch the "on...wrote:" in the middle of a sentence/paragraph.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>