Thread Dateien nach bestimmten Zeichenketten durchsuchen
(19 answers)
Opened by Michael at 2014-03-04 14:37 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #!/usr/bin/perl -w use strict; open(my $SRC, "<", "$srcfile") or die $!; while (my $line = <$SRC>) { my ($text, $status); if ($line =~ /;FOLD\s*;\s*(Coll.+?);%/) { $comment = $1; ($text, $status) = split(/\s+(\w+)$/, $comment); } else { next; } #mach was mit $text und $status } close $SRC; $q =~ /(bb|[^b]{2})/
|