minimal matching in reg.expr.

From: Date: Thu, 22 Jul 1999 08:45:49 +0000
Subject: minimal matching in reg.expr.
Groups: php.dev 
Request: Send a blank email to php-dev+get-8951@lists.php.net to get a copy of this message
Hi, how can I match minimally in reg.exp.? (like in Perl by e.g. ".*?" ) in Perl I would do the following: $a = "abcabc"; $a =~ s/a.*?c/d/; (--> $a == "dabc") in PHP this doesn't work (Warning: REG_BADRPT in ...). Regards, Michael (PHP 3.0.7, LINUX RedHat 5.1, Kernel 2.0.34)

« previous php.dev (#8951) next »