, , . , . , "Page X of Y":
Page \d+ of \d+
Page 14 of 203
. , 14 203. - \d+ , "14" "203" .
Page (\d+) of (\d+)
. Matcher, , :
Pattern p = Pattern.compile("Page (\\d+) of (\\d+)");
String text = "Page 14 of 203";
Matcher m = p.matcher(text);
if (m.find()) {
System.out.println(m.group(1));
System.out.println(m.group(2));
}
14 203.
.