Re: Pattern Matching Question
- From: rvtol+news@xxxxxxxxxxxx (Dr.Ruud)
- Date: Mon, 28 Nov 2005 12:14:02 +0100
Dr.Ruud:
> #!/usr/bin/perl
> use strict; use warnings;
>
> { local ($,, $\) = (':', "\n");
>
> $_ = 'xxxxAAAAAAAAAASDFGHJKLxxxx';
> my $Head = 'AAAAAAAA';
>
> print $Head, $1, substr($',0,7) while /(?<=$Head)(.)(?=.{7})/ig;
> }
Revision:
#!/usr/bin/perl
use strict; use warnings;
my $HugeString = 'xxxxAaAaAaAaAaSDFGHJKLxxxx';
my $Head = 'AAAAAAAA';
print "$1$2$3\n"
while $HugeString =~ /(?<=($Head))(.)(?=(.{7}))/ig;
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- Pattern Matching Question
- From: Dax Mickelson
- Re: Pattern Matching Question
- From: Dr.Ruud
- Pattern Matching Question
- Prev by Date: Re: Pattern Matching Question
- Next by Date: Re: You've read the Llama, now what?
- Previous by thread: Re: Pattern Matching Question
- Next by thread: Re: Pattern Matching Question
- Index(es):
Relevant Pages
|
|