[Evolution] Multi Line Regex Questions



Hello - 

I'm trying to figure out the correct way to utilize regex for a multiline conditional filter... 

I basically have some HTML in a message that looks something like this:

   BEGIN:</th>=20
                                                       <td style=3D"padding: 0=
   px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; pa=
   dding: 2px 0 2px 5px; vertical-align: top"> END </td>=20


I've tried various iterations of regex, but I think I'm bumping up against Evolution using ERE and not PCRE

ie, this works:
   grep -Pz "BEGIN:[\s\S]*END" evo_test.txt 

but this doesn't:
   grep -Ez "BEGIN:[\s\S]*END" evo_test.txt 

Perhaps there's a way using ERE that I'm not aware of... 

I do see that there are other options for filtering, such as the free form expression ( as documented in this 
bugzilla
comment: https://bugzilla.gnome.org/show_bug.cgi?id=550796#c10 ), however, it's unclear to me if that's going 
to help me
here or not... I'll keep playing with it, I suspect that's the direction I need to go in for this

I'm sure this has been encountered before, so any pointers in the right direction would be uber appreciated.

Thanks

Matt


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]