I have some regex that works in a regex tester (https://regex101.com/) but does not work within AHK. I know where the issue lies, but not why or how to fix it. Any advice would be appreciated.
Text exmaple:
- CASE TYPE TOTALS:
-----------------
1 #1 PALLET
1 QUARTR CUT 63
- MARKS:
- FOR ULTIMATE SHIP TO:
MELBOURNE DISTRIBUTION CENTER
Regex example:
Code: Select all
RegExMatch(PDF_DATA,"^-----------------\R((.|\R)*)- MARKS:",PC_COUNT_TOTAL)
But it comes up blank when running my code. I assume the site allows for ((.|\R*)*) but AHK doesnt for some reason. Any advice on how to resolve?1 #1 PALLET
1 QUARTR CUT 63
EDIT - my ultimate goal is to total the count (the number leading each line - there are a variable number of lines) - if you know of an easier way to accomplish this, it could bypass this original issue entirely.