When you think you got it, you don't get it..
Im trying to scan the link for =A-Z0-9_=, dump the '=' and evaluate the 
remainder as a defined constant.
Yes its funny looking, but if I could get this going Im golden.
$bar is always returned with '=_L_OL_HERE=' as the link and not 'here' 
as it supposed to be.
Any help would be appreciated.
Thanks


<?php
define('_L_OL_HERE', 'here');
$foo = '<a href="there.com">=_L_OL_HERE=</a>';
$bar = preg_replace('/(=)([A-Z0-9_])(=)/e', ' . constant("$2") . ', $foo);

echo $bar;

?>

-- 
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to