|< 1 2 >| | 15 entries, 2 pages |
$text =~ s/^(.{50000}).*$/$1/;
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use strict;
use warnings;
my $string = 'a' x 50_000 . 'skjd';
my $regexp = qr-^((.){32000}\2{18000})skjd$-;
print "yes\n" if $string =~ /$regexp/;
my $regexp = qr-^((.{25000}){2})skjd$-;
|< 1 2 >| | 15 entries, 2 pages |