Results 1 to 3 of 3
Threaded View
-
21st Feb 2012, 08:36 AM #3OPMemberWebsite's:
CoursesWeb.net MarPlo.netHi,
I solved the problem using the "/e" flag, which makes the preg_replace() to evaluate the expresion before replacement.
Code:preg_replace('/\<-- ([A-Z_]+) --\>/e', "$$1", $t);
Free Courses HTML, CSS, Ajax, Flash, ActionScript for Web Masters.
Free PHP - MySQL Course, JavaScript - jQuery Course and tutorials.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Preg_replace help
By Gavo in forum Web Development AreaReplies: 3Last Post: 25th Sep 2012, 07:23 PM -
Wordpress title preg_replace
By energyboost in forum WordpressReplies: 2Last Post: 3rd Oct 2011, 11:47 PM -
Lulzimg preg_replace help
By masterb56 in forum Web Development AreaReplies: 2Last Post: 15th Aug 2011, 06:31 PM -
preg_replace first half of matches ?
By Porsche_maniak in forum Web Development AreaReplies: 1Last Post: 16th Jan 2011, 05:12 PM -
Variable in phpBB
By SarMa in forum phpBBReplies: 11Last Post: 26th Mar 2010, 07:08 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...