Try
RegExMatch(clipboard,"i)(.*)\s*\.pdf_pages\s*(\d+)",part)
Run, %Adobelocation% /A page=%part2% %copyz%/%part1%.pdf"
The difference to the original regex is the Elimination of the parenthesis matching (\(
, \)
) and the Substitution of the separator Char in Front of the page specific (\.
instead of -
).
Note That since the parentheses around the file name have been dropped, you'd need some other Marker to indicate the Start of the relevant expression if you'd Extract from embedding Text. The context you give suggests that this is not necessary in your Case ( the clipboard containing only the relevant data), but keep it in mind when reusing the regex.
Still wondering why return
would not be Part of the extracted file name, but you Write that the original Works so i let this Aspect Rest.