On Thu, 2012-08-30 at 08:32 +0200, Patrick Ohly wrote:
> + pcrecpp::RE re("(BEGIN:VCARD.*END:VCARD)");
>
> I doubt that this will match (doesn't match line breaks) and if it did,
> it would match all vcards. Doesn't check that START/END occur at the
> start of a line (will therefore fail when it is embedded as comment, for
> example).
>
> pcrecpp::RE re("(^BEGIN:VCARD.*?^END:VCARD)",
> RE_Options().set_dotall(true));
I meant to make this a multiline pattern (needed for the "beginning of
line criteria") but forgot. Should be:
pcrecpp::RE re("(^BEGIN:VCARD.*?^END:VCARD)",
RE_Options().set_dotall(true).
set_multiline(true));
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution