You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/08/08 23:32:13 UTC
[jira] Created: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Add a pair of StringUtils.substringsBetween;String[] methods
------------------------------------------------------------
Key: LANG-275
URL: http://issues.apache.org/jira/browse/LANG-275
Project: Commons Lang
Issue Type: Wish
Reporter: Henri Yandell
Priority: Minor
I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LANG-275?page=all ]
Henri Yandell updated LANG-275:
-------------------------------
Fix Version/s: 3.0
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: http://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Priority: Minor
> Fix For: 3.0
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461909 ]
Henri Yandell commented on LANG-275:
------------------------------------
That looks great Dave.
Lang 2.3 is just about getting released, but as soon as that's out I'll go ahead and commit the patch for the 3.0 release.
Thanks for the patch :)
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: https://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Priority: Minor
> Fix For: 3.0
>
> Attachments: LANG-275.patch
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Dave Meikle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Meikle updated LANG-275:
-----------------------------
Attachment: LANG-275.patch
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: https://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Priority: Minor
> Fix For: 3.0
>
> Attachments: LANG-275.patch
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Closed: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Stephen Colebourne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Colebourne closed LANG-275.
-----------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.0)
2.3
Assignee: Stephen Colebourne
svn commit "C:\dev\commons\lang\RELEASE-NOTES.txt" "C:\dev\commons\lang\project.xml" "C:\dev\commons\lang\src\java\org\apache\commons\lang\StringUtils.java" "C:\dev\commons\lang\src\test\org\apache\commons\lang\StringUtilsSubstringTest.java" -N -m "LANG-275 - StringUtils substringsBetween, implemented by Dave Meikle" --username "scolebourne"
M C:\dev\commons\lang\RELEASE-NOTES.txt
M C:\dev\commons\lang\project.xml
M C:\dev\commons\lang\src\java\org\apache\commons\lang\StringUtils.java
M C:\dev\commons\lang\src\test\org\apache\commons\lang\StringUtilsSubstringTest.java
Transmitting file data: C:\dev\commons\lang\RELEASE-NOTES.txt
Transmitting file data: C:\dev\commons\lang\project.xml
Transmitting file data: C:\dev\commons\lang\src\java\org\apache\commons\lang\StringUtils.java
Transmitting file data: C:\dev\commons\lang\src\test\org\apache\commons\lang\StringUtilsSubstringTest.java
Committed revision 492377
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: https://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Assigned To: Stephen Colebourne
> Priority: Minor
> Fix For: 2.3
>
> Attachments: LANG-275.patch
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Dave Meikle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461881 ]
Dave Meikle commented on LANG-275:
----------------------------------
The patch LANG-275.patch should provide this method implementation and update the StringUtilsSubstringTest Test Case to test the method.
Please check both to see if I have understood what you are looking for.
Cheers,
Dave
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: https://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Priority: Minor
> Fix For: 3.0
>
> Attachments: LANG-275.patch
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Mike McLean (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LANG-275?page=comments#action_12432259 ]
Mike McLean commented on LANG-275:
----------------------------------
Henri,
Can you expand (use cases - scenarios)? I'll set it up for you when I understand 100% what you want.
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: http://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Priority: Minor
> Fix For: 3.0
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (LANG-275) Add a pair of
StringUtils.substringsBetween;String[] methods
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LANG-275?page=comments#action_12433020 ]
Henri Yandell commented on LANG-275:
------------------------------------
Thanks Mike,
Currently substringBetween only returns the first match. So from:
StringUtils.substringBetween("[one], [two], [three]", "[", "]")
it would return "one".
I want to get String[] { "one", "two", "three" }
> Add a pair of StringUtils.substringsBetween;String[] methods
> ------------------------------------------------------------
>
> Key: LANG-275
> URL: http://issues.apache.org/jira/browse/LANG-275
> Project: Commons Lang
> Issue Type: Wish
> Reporter: Henri Yandell
> Priority: Minor
> Fix For: 3.0
>
>
> I found myself wanting a version of substringBetween(String, String, String) that would return a String[] of the ones between and not just the single String for the first match.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org