[
https://issues.apache.org/jira/browse/LANG-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136028#comment-18136028
]
Jonothan Li edited comment on LANG-1644 at 11/1/26, 8:39 AM:
-------------------------------------------------------------
Hi team,
I've opened a pull request for this issue:
https://github.com/apache/commons-lang/pull/1847
It adds a new isHexadecimal method to NumberUtils to cleanly validate hex
strings without relying on exception handling, and adds testIsHexadecimal to
verify valid prefixes and invalid strings.
was (Author: JIRAUSER315246):
Hi my group attempted a fix for this issue:
https://github.com/apache/commons-lang/pull/1847
> Check if number is hexadecimal
> ------------------------------
>
> Key: LANG-1644
> URL: https://issues.apache.org/jira/browse/LANG-1644
> Project: Commons Lang
> Issue Type: Improvement
> Reporter: Arturo Bernal
> Priority: Minor
> Time Spent: 5h 10m
> Remaining Estimate: 0h
>
> IMO would be fine have a method that given a String tell you if is a valid
> hexadecimal number instead of try to create the number. should be valid:
>
> * 5D0
> * 0x7FFFFFFFFFFFFFFF
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)