1.) /[AZ][az]*(\s([\d]+)|\s([A-Za-z]+))+/
[AZ][az]* is a headword
\s([\d]+) is the number prefix representing the (white) space
\s([A-Za-z]+) , which is a prefix word, is a (white) space
2.) / ( /(\d{1,3})(,(\d{3}))*(.(\d{2}))/ ( )(((( /(\d{1,3})(,(\d{3}))*(.(\d{2}))/ ))) /(\d{1,3})(,(\d{3}))*(.(\d{2}))/
(\d{1,3}) is a number from 1 to 3 digits
(,(\d{3}))* is 0 or more three-digit numbers with a comma prefix
(.(\d{2})) is a two-digit decimal character
3.) /Page (\d+) of (\d+)/
(\d+) is one or more digits
When writing this (or any regular expression) I like to use this tool
source share