[
https://issues.apache.org/jira/browse/LANG-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15567995#comment-15567995
]
Bruno P. Kinoshita commented on LANG-1238:
------------------------------------------
>It would be good to first identify how many methods we are talking about here.
Here's what I could find (6) searching in Eclipse for 'regular' and 'regex' in
StringUtils:
- removeAll(:String, :String)
- removeFirst(:String, :String)
- replacePattern(:String, :String, :String)
- removePattern(:String, :String)
- replaceAll(:String, :String, :String)
- replaceFirst(:String, :String, :String)
> Overload Operations in StringUtils that take a regex to take precompiled
> Pattern
> --------------------------------------------------------------------------------
>
> Key: LANG-1238
> URL: https://issues.apache.org/jira/browse/LANG-1238
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.*
> Affects Versions: 3.4
> Reporter: Christopher Cordeiro
> Priority: Minor
>
> For performance reasons, it would be nice if the operations in StringUtils
> that take a regular expression (removePattern/replacePattern) were overloaded
> to optionally take a precompiled Pattern.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)