[
https://issues.apache.org/jira/browse/LANG-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358838#comment-14358838
]
Benedikt Ritter commented on LANG-1046:
---------------------------------------
Okay, how about this:
{code:java}
assertTrue(StringUtils.containsPattern("alphabet", "alpha.*"));
assertTrue(StringUtils.containsPattern("alphabet", "alph."));
assertTrue(StringUtils.containsPattern("alphabet", "ph.b"));
{code}
> containsPattern method for StringUtils?
> ---------------------------------------
>
> Key: LANG-1046
> URL: https://issues.apache.org/jira/browse/LANG-1046
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Sebb
> Fix For: Discussion
>
>
> The JVM Matcher class only supports anchored matches.
> It might perhaps be useful to add a containsPattern(CharSequence input,
> String pattern) method that returns true if the input contains the pattern.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)