2012-07-09, 02:58:45
At first: great plugin ... :-)
I couldn't figure out the regular expression for a <total> replace solution not only "{% foo %}" ... My goal is to replace really anything. E.g. all "e" to "x" or any ;-) to a matching image....
Does anyone know how to change this line:
preg_replace_callback("/(<p>\s*)?{%\s*([a-zA-Z0-9_-]+)(\s+(?:%[^%\}]|[^%])+)?\s*%}(\s*<\/p>)?/",'dynpages_replace_match',$content);
best
Lars
I couldn't figure out the regular expression for a <total> replace solution not only "{% foo %}" ... My goal is to replace really anything. E.g. all "e" to "x" or any ;-) to a matching image....
Does anyone know how to change this line:
preg_replace_callback("/(<p>\s*)?{%\s*([a-zA-Z0-9_-]+)(\s+(?:%[^%\}]|[^%])+)?\s*%}(\s*<\/p>)?/",'dynpages_replace_match',$content);
best
Lars