note 77979 deleted from reference.pcre.pattern.modifiers by nlopess

From: Date: Sun, 23 Sep 2007 21:12:11 +0000
Subject: note 77979 deleted from reference.pcre.pattern.modifiers by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130717@lists.php.net to get a copy of this message
Note Submitter: dusted at spam dot is dot teh dot sucks dot dusted dot dk ---- How would one distinguish the slashes added by preg_replace (with e modifier) from those that was in the actual string? example being: $orig_str= 'heres my C source; printf("Hello World\n");' Normally echoes like: printf("Hello World\n"); But after preg_replace: printf(\"Hello World\n\"); How can one see which was added and which was part of the original string?

« previous php.notes (#130717) next »