Code: Select all
Data=
(
TEST
CUSTOMER COPY
Dataaaaa
Databbbb
PAGE 1 OF 2Order Confirmation
QUANTITY
CUSTOMER COPY
Data1
Data2
814 PCS(SETS) TOTAL
SUB TOTAL:
PAGE 4 OF 4 TOTAL:100
)
Needle := "iUm)CUSTOMER COPY(.*)((PAGE \d)|(\n\d+ PCS))"
spo:=1
while (fpo:=RegexMatch(Data, Needle, m, spo))
{
spo := fpo + StrLen(m)
Msgbox % m1
}
Before running the code, copy the Data text in the sample code above.
Code: Select all
Data := Clipboard
Needle := "iUm)CUSTOMER COPY(.*)((PAGE \d)|(\n\d+ PCS))"
spo:=1
while (fpo:=RegexMatch(Data, Needle, m, spo))
{
spo := fpo + StrLen(m)
Msgbox % m1
}