hello folks...
perhaps someone can help me with a regular expression. i want to define my own tag where i can specify multiple parameters.
i tried it so:
$string="
[cms]
module=test
var=bla
value=dumdidum
[/cms]
";
when i use
echo eregi_replace("[cms]((.[a-z])((([a-z]))=(([a-z])))(.[a-z]))*[/cms]", "cms($\4='\6');", $string);
he gives me the output:
cms($value='dumdidum');
so he only displays the last parameter. how can i handle miltiple ones???
thanks marcus