commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/LANG-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358802#comment-14358802
] 

Sebb edited comment on LANG-1046 at 3/12/15 4:28 PM:
-----------------------------------------------------

The string "alphabet" matches "alpha.*" and starts with "alph.".
Both of these are directly supported by Java. They are anchored to the start of the string.

It also contains "ph.b", but matching this is not directly supported.


was (Author: sebb@apache.org):
The string "alphabet" matches "alpha.*" and starts with "alph.".
Both of these are supported. They are anchored to the start of the string.

It also contains "ph.b", but matching this is not directly supported.

> 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