ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/perl-Regexp-Assemble/examples
/
usr
share
doc
perl-Regexp-Assemble
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
hostmatch
-
chmod
Open
Rename
Delete
assemble
4.88 MB
chmod
View
DL
Edit
Rename
Delete
debugging
2.82 MB
chmod
View
DL
Edit
Rename
Delete
failure.01.pl
1.56 MB
chmod
View
DL
Edit
Rename
Delete
fee
284 B
chmod
View
DL
Edit
Rename
Delete
file.1
20 B
chmod
View
DL
Edit
Rename
Delete
file.2
21 B
chmod
View
DL
Edit
Rename
Delete
file.3
16 B
chmod
View
DL
Edit
Rename
Delete
file.4
19 B
chmod
View
DL
Edit
Rename
Delete
ircwatcher
1.14 MB
chmod
View
DL
Edit
Rename
Delete
naive
1.43 MB
chmod
View
DL
Edit
Rename
Delete
roman
610 B
chmod
View
DL
Edit
Rename
Delete
stress-test.pl
2.73 MB
chmod
View
DL
Edit
Rename
Delete
tld
608 B
chmod
View
DL
Edit
Rename
Delete
track-5.10
308 B
chmod
View
DL
Edit
Rename
Delete
unquotemeta
395 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/perl-Regexp-Assemble/examples/failure.01.pl
use v5.14; use strict; use warnings; use Regexp::Assemble; use Data::Dumper; my $re = Regexp::Assemble->new(flags => 'i')->track(1); foreach my $reg ( '(?^ux: Coneheads(?^ux: [^\\p{Alnum}] )(?^ux: [^\\p{Alnum}] )(?^ux: [^\\p{Alnum}] )Dan(?^ux: [^\\p{Alnum}] )Aykroyd(?^ux: [^\\p{Alnum}] )Comedy(?^ux: [^\\p{Alnum}] )Eng )|(?^ux: Coneheads(?:[+]|%20)-(?:[+]|%20)Dan(?:[+]|%20)Aykroyd(?:[+]|%20)Comedy(?:[+]|%20)Eng)', # 'Coneheads(?^ux: [^\\p{Alnum}] )(?^ux: [^\\p{Alnum}] )(?^ux: [^\\p{Alnum}] )Dan(?^ux: [^\\p{Alnum}] )Aykroyd(?^ux: [^\\p{Alnum}] )Comedy(?^ux: [^\\p{Alnum}] )Eng', # 'Coneheads(?:[+]|%20)-(?:[+]|%20)Dan(?:[+]|%20)Aykroyd(?:[+]|%20)Comedy(?:[+]|%20)Eng', '(?^u:Coneheads\\ 1993)', ) { $re->add( $reg ); } foreach my $string ( "Coneheads - Dan Aykroyd Comedy Eng", "Coneheads+-+Dan+Aykroyd+Comedy+Eng", "Coneheads%20-%20Dan%20Aykroyd%20Comedy%20Eng", "Coneheads 1993", ) { if( $string =~ /$re/ ) { say "matched $string"; if( my $matched = $re->matched() ) { say "matched with: $matched"; } if( my $matched = $re->source($^R) ) { say "\$^R: $^R"; say "match source: $matched"; } say "work around: ", get_source($re, $string); } else { say "no match on $string"; say "get_source returns: ", get_source($re, $string); } say "-" x 70; } print Dumper $re; sub get_source { my ($re, $string) = @_; foreach my $r ( @{$re->{mlist}} ) { if( $string =~ /$r/ ) { return $r; } } return; }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply