UiPath Regex Matches

Hello, I am using the regex pattern to find matches between two labels:

New regex("(?:"+labelBefore.Trim+"((?:.?\r?\n?))"+labelAfter.trim+")+")

The input string is:
Some sample text. This is a test
Page 1 of 50

labelBefore = Hello
labelAfter currently = Page but I want to make the label after ‘Page 1 of 50’ by using either [0-9] or /d in the regex pattern but I am not sure how to insert that in the pattern above. Does anyone?

Could you explain what data do you want to extract from Input String?

Could you use something like: “Page \d+ of \d+”