[
https://issues.apache.org/jira/browse/LANG-1540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897980#comment-17897980
]
Mousa Al Bateh commented on LANG-1540:
--------------------------------------
I saw that this feature was still open and couldn't find any discussions about
it; so I thought that it might be still relevant.
As for my personal point of view (which am not holding strong on), the
String.matches() is absolutely a fine way of doing it. There are even other
ways provided by the JDK already. However, I could think of common use cases
for this when checking raw strings that might contain xml elements or json,
etc...
Again, I don't have a strong opinion on this feature; I just worked on it since
it was open and thought "Why not" have it.
> Add startsAndEndsWith() functions to StringUtils.
> -------------------------------------------------
>
> Key: LANG-1540
> URL: https://issues.apache.org/jira/browse/LANG-1540
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Isira Seneviratne
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)