A
Adam Sandler
Hello,
I have a question about capturing the data which appears after matching
a pattern. I have a report which has more than one "quantity:
xxx,yyy,zzz" entry (where xxx,yyy,zzz are integers grouped together).
Based on prvious experience, I know how to find all the instances of
"quantity:" but how do I get the integers which follow into a variable
(I want to add up all the values later)??? The only similar experience
I have is in java I can use indexOf to find the poisiton of the first
number and parse from there... does Perl have an equivalent? Examples,
insight, advice is greatly appreciated.
Thanks!!!
I have a question about capturing the data which appears after matching
a pattern. I have a report which has more than one "quantity:
xxx,yyy,zzz" entry (where xxx,yyy,zzz are integers grouped together).
Based on prvious experience, I know how to find all the instances of
"quantity:" but how do I get the integers which follow into a variable
(I want to add up all the values later)??? The only similar experience
I have is in java I can use indexOf to find the poisiton of the first
number and parse from there... does Perl have an equivalent? Examples,
insight, advice is greatly appreciated.
Thanks!!!