Sure, match an empty string and place a look-ahead after it that captures /.*
in a capturing group:
Matcher m = Pattern.compile("(?=(/.*))").matcher("/abc/def/ghi");
while(m.find()) {
System.out.println(m.group(1));
}
would print:
/abc/def/ghi
/def/ghi
/ghi
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…