📜  java 查找字符串中第一个字母字符的索引 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:18.540000             🧑  作者: Mango

代码示例2
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());
}