[ https://issues.apache.org/jira/browse/GROOVY-7540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660749#comment-14660749 ]
Paul King commented on GROOVY-7540: ----------------------------------- When mentioning {{String#replace(CharSequence, CharSequence)}}, I am still in specifying what the method would do mode. We want a method that does what that method does but only for multi CharSequence pairs. The implementation would be more like the commons lang StringUtils replaceEach method. > 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)