[
https://issues.apache.org/jira/browse/LANG-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881161#action_12881161
]
Rocky commented on LANG-615:
----------------------------
thanks for the reply, I never knew about this use of the regex API.
> add indexesOf methods to StringUtils
> ------------------------------------
>
> Key: LANG-615
> URL: https://issues.apache.org/jira/browse/LANG-615
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Rocky D. Pulley
> Priority: Minor
> Attachments: StringUtils_indexOf_diff.java
>
>
> Adding methods to StringUtils which support returning an array of indexes of
> a search string.
> The following code would return int [0, 18, 45, 57]:
> {code}
> String s = "This is a test of this string which contains this a lot. this";
>
> int[] idxs = indexesOfIgnoreCase(s, "this");
>
> for (int i=0; i<idxs.length; i++)
> {
> System.out.println("Pos: " + idxs[i]);
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.