[TYPO3-core] RFC: #9336 Enable ascii for parsefunc-short replacement

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Sep 17 09:30:34 CEST 2008


Hi Oli,

I love it! Where is the patch? ;)

Cheers,
Ernesto

Oliver Hader wrote: on 12.09.2008 12:05:

> Or as addition a combined way to perform more than one replacement:
> 
> 10 = TEXT
> 10 {
>   field = bodytext
>   stdWrap.replacement {
>     10 {
>       search.char = 32
>       replace = %20
>     }
>     20 {
>       search = oldValue
>       replace = newValue
>     }
>     30 {
>       search = (cat|dog|tiger)
>       replace = animal
>       // regExp could be "1" for "yes, use preg_replace" or a modifier
>       regExp = i
>     }
>   }
>   parseFunc {
>     ...
>   }
> }
> 
> The indexes 10, 20, 30 are just for setting an order on the execution of 
> the replacement. Each subkey "search", "replace" and "regExp" has again 
> stdWrap functionality.


More information about the TYPO3-team-core mailing list