Thread nochmal RE: *nerv* (4 answers)
Opened by rio at 2005-07-02 17:54

pKai
 2005-07-02 19:28
#5166 #5166
User since
2005-02-18
357 Artikel
BenutzerIn
[default_avatar]
Kein Ahnung was du für ein Problem mit /g hast:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;

local $/ = undef;
my $content = <DATA>;

my $Re = qr/A(\d)---B(\d)---C(\d)/;

while ($content =~ m/$Re/sg) { # /s hier nicht benötigt, aber im OT-Re
print "A: $1, B: $2, C: $3\n";
}
# Leerzeichen in folgender Zeile nur für Post,
# da sich die Forum-Software sonst verschluckt
_ _DATA_ _
.... ... A1---B1---C1--- .....
... ---A2---B2---C2... ...
.. .. ---A3---B3---C3--- ...
Quote
A: 1, B: 1, C: 1
A: 2, B: 2, C: 2
A: 3, B: 3, C: 3
I sense a soul in search of answers.

View full thread nochmal RE: *nerv*