Thread Regex über mehrere Zeilen (10 answers)
Opened by padpaf at 2013-08-29 16:18

Linuxer
 2013-08-29 16:33
#169813 #169813
User since
2006-01-27
3880 Artikel
HausmeisterIn

user image
Hi, mehr Details bitte. So ist Dein Problem nicht nachvollziehbar:


Test funktioniert:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 testing > cat t.pl
#! /usr/bin/perl
use strict;
use warnings;


my $mibtext = '"The number of excessive collisions, incremented for each
frame that experienced 16 collisions during transmission and
was aborted."';


if ( $mibtext =~ m/".*"/s ) {
print "MATCH\n";
}

testing > perl t.pl
MATCH
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread Regex über mehrere Zeilen