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

Henri Yandell reopened LANG-397:
--------------------------------


Possible item of code. Useful in password strength testing (see: LANG-573):

    public static int countMatches(String text, String regex) {
        Pattern p = Pattern.compile(regex);
        Matcher m = p.matcher(text);
        int count = 0;
        while(m.find()) {
            count++;
        }
        return count;
    }

> RegexpUtils?
> ------------
>
>                 Key: LANG-397
>                 URL: https://issues.apache.org/jira/browse/LANG-397
>             Project: Commons Lang
>          Issue Type: Task
>          Components: lang.*
>            Reporter: Henri Yandell
>             Fix For: 3.x
>
>
> Consider whether we can add any value to the Regexp libraries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to