[ 
https://issues.apache.org/jira/browse/LANG-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Ritter updated LANG-1046:
----------------------------------
    Comment: was deleted

(was: 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)

Reply via email to