Yes, another quetion on this.
I have this:
$string="<bla bla bla>Preço: € 38</a> bla bla bla";
$fn = preg_replace("/(.*€ )(?)([<]+)/i","\1\$2\3", $string);
echo$fn;
actually at this example the return will be exactly as $string:
Preço: € 38 bla bla bla
But I want to change the 38 value by add 10 €. I want to add 10 € to all prices (this is only an exemple, on my real $string I have several diferent prices).
I've tried $fn = preg_replace("/(.*€ )(?)([<]+)/i","\1".$2+10."\3", $string); but did not result.
Can I do this with preg_replace or not? If yes, how?
Thanks all.