commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (LANG-1046) containsPattern method for StringUtils?
Date Thu, 12 Mar 2015 15:41:38 GMT

     [ 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)

Mime
View raw message