note 57087 deleted from reference.pcre.pattern.syntax by colder

From: Date: Mon, 18 Jun 2007 18:03:55 +0000
Subject: note 57087 deleted from reference.pcre.pattern.syntax by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127564@lists.php.net to get a copy of this message
Note Submitter: Toni ---- While andrew is right about using a parser when a parser is called for, I have to point out the fact, that the "regex killer" example he is giving is consistent with the general GIGO *(garbage in -> agrabe out) principle:. That said, the below mentioned regex will do exactly what it's supposed to do on it. Choke. That type of code is not recommended by W3C. Although an xhtml document will validate, it will yield warnings. It is much safer to use "&lt;" in such a case. That would be <img class="match1" alt="&lt;">. The lesson here is "rfm". And for advanced users "RTFM".

« previous php.notes (#127564) next »