Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java find index of first alpha character in string

String line = "000 1 This is my message";
Pattern p = Pattern.compile("p{L}");
Matcher m = p.matcher(line);
if (m.find()) {
    System.out.println(m.start());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #find #index #alpha #character #string
ADD COMMENT
Topic
Name
9+6 =