note 45882 rejected from function.preg-replace by tomsommer

From: Date: Wed, 22 Sep 2004 19:30:20 +0000
Subject: note 45882 rejected from function.preg-replace by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77186@lists.php.net to get a copy of this message
Note Submitter: tamas at netpromote dot hu ---- RE:Jinx [06-Sep-2004 11:10] After spending couple of hours with creating code replacing something like this "bla(\d+)" with the \\1th element of an array, I gave up, and searched here... (The error, what I couldn't solve was: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE (somethimes CHARACTER), expecting T_STRING or T_VARIABLE or T_NUM_STRING ) Then I found your example which was exacly what I'm looking for... But it has the same problem.... Can the version (latest stable 4.x)/ or anything else be the cause of this? Any sugession welcome! thnx: NemTom

« previous php.notes (#77186) next »