In Java is there a way to find out if first character of a string is a number?
One way is
string.startsWith(\"1\")
and do the abov
regular expression starts with number->'^[0-9]' Pattern pattern = Pattern.compile('^[0-9]'); Matcher matcher = pattern.matcher(String); if(matcher.find()){ System.out.println("true"); }