|< 1 2 >| | 18 Einträge, 2 Seiten |
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1 2 3 4 5 6 7 8 9
open(DAT,"datei.txt"); my @read = <DAT>; close(DAT); for(@read) { if ($_ =~ /"(.*?)"/s) { print $1; } }
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
local $/;
my $line = <DATA>;
print $1 if $line =~ /"(.*?)"/s;
asdfahds"dsfkjhds
sldfhads
#asdlfhasdf
"adsfaödsj
asdöf
dsfkjhds
sldfhads
#asdlfhasdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl -w
use strict;
use warnings;
open(DAT,"datei.txt") || die $!;
local $/;
my $line = <DAT>;
print $1 if $line =~ /"(.*?)"/s;
close(DAT);
datei.txt:
my $var = "BrownWolf";
my $ujd = "
a
b
c
d
";
Ausgabe:
BrownWolf
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1
2
3
4
5
local $/;
my $line = <DATA>;
my @matched = $line =~ /"(.*?)"/sg;
local $, = '|';
print @matched;
|< 1 2 >| | 18 Einträge, 2 Seiten |