<div dir="ltr">[^<] works for me In python<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-30 21:44 GMT+02:00 maxwell <span dir="ltr"><<a href="mailto:maxwell@umiacs.umd.edu" target="_blank">maxwell@umiacs.umd.edu</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2014-06-30 15:33, Phil Gooch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Jun 30, 2014 at 7:08 PM, Matías Guzmán Naranjo<br>
<<a href="mailto:mortem.dei@gmail.com" target="_blank">mortem.dei@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wouldn't just writing <date>.*?</date> get me 'week after'?<br>
</blockquote>
<br>
I'd go for<br>
<br>
<date>[^<]+</date><br>
<br>
which will consume line breaks. Of course, this assumes that date only<br>
contains text and no other markup.<br>
</blockquote>
<br></div></div>
Again, my knowledge of grep is probably dated.  But I just tried the above, and it didn't work (it did not consume line breaks, so it couldn't find things that were on two successive lines).  Are you using some command line parameter on grep that allows it to search across successive lines?<br>

<br>
   Mike Maxwell<br>
</blockquote></div><br></div>