note 47289 deleted from reference.pcre.pattern.syntax by sean

From: Date: Wed, 10 Nov 2004 16:14:04 +0000
Subject: note 47289 deleted from reference.pcre.pattern.syntax by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80356@lists.php.net to get a copy of this message
Note Submitter: sam at wyvern dot com dot au ---- I note that you appear not to be able to use a back-reference inside a quantifier, so this doesn't work: preg_match('#^((\d+)\x00(\d+)\x00(.{\1})(.{\2}))+#', $data, $match) this is unfortunate, as this is a very useful idea - being able to proccess data with specified lengths in it. Instead it has to be done manually with excessive substr() usage... ---- Reason: bad code

« previous php.notes (#80356) next »