Re: Sterilizing regexp

From: Date: Wed, 01 Oct 2008 06:53:56 +0000
Subject: Re: Sterilizing regexp
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-281265@lists.php.net to get a copy of this message
Frank Stanovcak wrote: > I've got to pass about 9 or 10 calls to it, some of which will be > arrays, and I have to do it from several different places. Felt this > was a bit more elegant than hard coding the pregmatches unless there > is an easier way. Code elegance is usually in the eye of the beholder, but personally I would have stuck to a set of hardcoded preg_matches(). /Per Jessen, Zürich

« previous php.general (#281265) next »