Hey all,
I'm trying to use my own type of markup language and have PHP change it to HTML.
So this:
Description[eimg]
would be changed to this:
<img src="image.jpg" alt="Description">
So, why doesn't this work?
$string="
Description[eimg]\n\n
Description2[eimg]";
preg_replace("/[img=(.+)](.+)[eimg]/U","<img src=\"\1\" alt=\"\2\">", $string);
When the following is displayed in HTML, I'm getting the string itself and not an image.
All help is highly appreciated!!