#19347Integrate string replacement to stdWrap
Description
With stdWrap it’s not possible yet to do (ordered) string replacements for processing content data.
On introducing a new stdWrap property “replacement” that takes a ordered list of replacement definitions multiple manipulations could be executed the same time. Additionally it regular expressions can be used if required.
TypoScript example:
20 = TEXT
20 {
value = There_is_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah!
stdWrap.replacement {
10 {
search = _
replace.char = 32
}
20 {
search = in da hood
replace = around the block
}
30 {
search = #a (Cat|Dog|Tiger)#i
replace = an animal
useRegExp = 1
}
}
}
The indexes 10, 20, 30 are just for setting an order on the execution of the replacement. Each subkey “search”, “replace” and “useRegExp” has again stdWrap functionality.
(issue imported from #M9373)