Posted by nescio on 12/19/05 13:14
hello,
i have got a list of names in the following format:
$name = "/*jansen*/jansen";
-----
i want to change them into:
$name = "jansen";
-----
i tried to use a regular expression to do this:
$newname = ereg_replace('^(/\*)([a-zA-Z]+)(\*/)$', '',$name);
but i always get the same value back:
$newname = "/*jansen*/jansen";
what am i doing wrong?
thanks
[Back to original message]
|