Re: [pcre-dev] [Bug 1380] Report match when doesn't match an…

Αρχική Σελίδα
Delete this message
Συντάκτης: Zoltán Herczeg
Ημερομηνία:  
Προς: Jean-Christophe Deschamps
Υ/ο: pcre-dev
Αντικείμενο: Re: [pcre-dev] [Bug 1380] Report match when doesn't match and vice-versa
Hi,

> How would you make a pattern to extract lines that violate the format?


This should be really easy using negative assertions. E.g: a line must match /^PATTERN$/ (non-multiline match). A non-matching line can be listed as:

/^(?!PATTERN$).*/

Regards,
Zoltan