Feature #42287
closedstdWrap replacement: add optionSplit-support
100%
Description
With optionSplit-support for the "replace"-parameter it would be possible to do all nice optionSplit-stuff like replacing the first/middle/last occurences differently.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15898
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15898
Updated by Philipp Gampe over 11 years ago
This is a documentation
The ``useOptionSplitReplace`` boolean property of ``replacement`` allows to use optionSplit for the ``replace`` property. This works for both normal and regexp replacements. Usage examples are included below
# There1is2a3cat,3a3dog3and3a3tiger3in3da3hood!3Yeah! 10 = TEXT 10.value = There_is_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah! 10.replacement.10 { search = _ replace = 1 || 2 || 3 useOptionSplitReplace = 1 }
# There is a tiny cat, a midsized dog and a big tiger in da hood! Yeah! 20 = TEXT 20.value = There is a cat, a dog and a tiger in da hood! Yeah! 20.replacement.10 { search = #(a) (Cat|Dog|Tiger)#i replace = ${1} tiny ${2} || ${1} midsized ${2} || ${1} big ${2} useOptionSplitReplace = 1 useRegExp = 1 }
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15898
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15898
Updated by Gerrit Code Review about 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15898
Updated by Stefan Neufeind about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 19ddae8d9745982bfba8738c63c38084e1933f5d.
Updated by Chris topher about 11 years ago
- TYPO3 Version changed from 6.0 to 6.2
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed