[ https://issues.apache.org/jira/browse/GROOVY-7540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14655275#comment-14655275 ]
Jochen Kemnade commented on GROOVY-7540: ---------------------------------------- Well, I need to be able to use both single- and multi-char strings as source and replacement. And {{tr}} also does conversion to list and back again. I can live with using {{StringUtils}}, but I'd like to see the functionality built into Groovy. But I'm okay if you say the request is invalid. > Add StringGroovyMethods.collectReplacements(String, Map) > -------------------------------------------------------- > > Key: GROOVY-7540 > URL: https://issues.apache.org/jira/browse/GROOVY-7540 > Project: Groovy > Issue Type: Improvement > Reporter: Jochen Kemnade > Priority: Minor > > It should be possible to use a map with {{collectReplacements}}, like in > {code} > "f006ar".collectReplacements(["0":"o", "6":"b"]) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)