use regex to parse pageSize and transform output page links