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:
Hello
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?