Posted by gehegeradeaus on 09/12/06 09:10
Can someone help me to make a regular expression for this sort of
replacement :
text with {link:pagehref}a link{/link}.
replace to ->
text with <a href="pagehref">a link</a>
I tried several things but nothing seems to work... e.g.
$value=preg_replace("/\{link\:(.+?)\}(.+?)\{\/link\}/s","<a href=\"$1\"
target=\"_blank\">$2</a>",$value);
Thanks in advance!
[Back to original message]
|