IT/java

숫자 판단 isdigit 는 아니지만... 문자 판단

iezs 2016. 9. 8. 16:47


2017-05-26 

자바스크립트에서는

$.isNumeric or isNaN or 정규식 정도가 있습니다.



previous... 이하 


from http://stackoverflow.com/questions/1102891/how-to-check-if-a-string-is-numeric-in-java


NumberUtils.isNumber or StringUtils.isNumeric from Apache Commons Lang.

You can also use StringUtils.isNumericSpace which returns true for empty strings and ignores internal spaces in the string. (The linked javadocs contain detailed examples for each method.)

shareimprove this answer