[ https://issues.apache.org/jira/browse/LANG-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358802#comment-14358802 ]
Sebb commented on LANG-1046: ---------------------------- 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)