In case s.o. else will have the same problem.
Here's, how i solved it "my way":
[...]
# storage for APN data (multiple lines)
my %APNdata;
my @APNarray;
[...]
APNID PDPADDEQOSID VPAA PDPCHPDPTY PDPID
(?:[ ]+(\\d+)(?{\$APNdata{'APNID'} = \$^N;})[ ]+(\\d+)(?{\
$APNdata{'EQOS
On 5 Nov., 17:12, [EMAIL PROTECTED] (John W . Krahn) wrote:
>
> Your pattern ()* is a list and the pattern will match every line but
> only capture the *last* line matched. To do what you want you have to
> loop through the lines individually.
>
I would prefer to do without own loops.
What about
On Monday 05 November 2007 07:45, Frank Bergemann wrote:
>
> sorry i was missing to tell, that i used the HERE script like syntax.
>
> Here's an example:
>
>
>
> #!/usr/bin/perl -w
>
> use strict;
>
> my $input = << "END_OF_INPUT";
> Hi there!
> Here're some lin
Hi Tom,
sorry i was missing to tell, that i used the HERE script like syntax.
Here's an example:
#!/usr/bin/perl -w
use strict;
my $input = << "END_OF_INPUT";
Hi there!
Here're some lines to match...
1st some specific ones
some more
and finally this one
No
On 11/5/07, Frank Bergemann <[EMAIL PROTECTED]> wrote:
> I would like to extract with this:
>
> [...]
> APNID PDPADDEQOSID VPAA PDPCHPDPTY PDPID
> (?:[ ]+(\\d+)[ ]+(\\d+)[ ]+NO[ ]+IPV4[ ]+(\\d+)\\n)*
> [...]
What is that? Is it a piece of a regular expression? Why do you
Hi,
using perl 5.8.8. i was trying to match for capturing data from a
server's response message.
Now i have the problem, that within the response there is a head-line
with #x next lines, that match a certain pattern. And i want to
extract as many data as come:
E.g folloing input
[...]
APNID PD