Page 1 of 1

Help with regex_replace

Posted: Sat Jan 12, 2013 9:34 pm
by Joseph777
Hi,

How do i change with regex_replace or other function

1. this 100 EUR (2.500 Kč) to this 2.500 Kč
2. this 10 EUR (250 Kč) to this 250 Kč
(amounts can be different)
3. How do i remove id="e67mde0d5_a6sd4" (in the id can be different characters)

This solution should be:
{$value|regex_replace:'anything':'anything'}

thanks

Re: Help with regex_replace

Posted: Sun Jan 13, 2013 4:44 pm
by Joseph777
is it correct?
3. {$value|regex_replace:'/id=".*?"/':''}

1-2. {$value|regex_replace:'???????????':'/\(.*?\)/'}