Thread Regex, Ausdruck einzeln analysieren (11 answers)
Opened by PETER_PAN2009 at 2010-06-11 09:17

Gast Gast
 2010-06-11 09:48
#138237 #138237
2010-06-11T07:37:38 renee
Ja, soweit ich weiß, kann \d noch mehr matchen.

Was wäre das z.B.?

Code (perl): (dl )
1
2
3
4
5
for (0..255) {
        if (chr($_) =~ /\d/) {
                print "$_ " . chr($_) . " match\n";
        }
}

Code: (dl )
1
2
3
4
5
6
7
8
9
10
48 0 match
49 1 match
50 2 match
51 3 match
52 4 match
53 5 match
54 6 match
55 7 match
56 8 match
57 9 match

Last edited: 2010-06-11 09:52:17 +0200 (CEST)

View full thread Regex, Ausdruck einzeln analysieren