I am matching a string in form: Page 1 of X
where X is a digit with the simple Page 1 of \d+
How can I match the same string as above except ensuring Y is a number but not a 1
in the expression Page Y of X
.
Page 1 of 41 **no match**
Page a of 41 **no match**
Page 12 of 111 **match**
The solution I am trying seems not to work
Page ^(?!(?:1)$)\d+ of \d+