Posted By

juzerali on 04/27/09


Tagged

JavacheckNumeric


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

luciacalvom


to check for a numeric value in a string in java


 / Published in: Java
 

  1. java.util.regex.Pattern.matches("\\d*", (test==null)?"":test.trim())
  2.  
  3. returns a boolean

Report this snippet  

You need to login to post a comment.