Help with regex_replace

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Joseph777
Forum Members
Forum Members
Posts: 206
Joined: Wed Mar 16, 2011 9:13 am

Help with regex_replace

Post 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
Joseph777
Forum Members
Forum Members
Posts: 206
Joined: Wed Mar 16, 2011 9:13 am

Re: Help with regex_replace

Post by Joseph777 »

is it correct?
3. {$value|regex_replace:'/id=".*?"/':''}

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

Return to “The Lounge”