Thread regex-anfänger-frage :) (6 answers)
Opened by Froschpopo at 2007-02-17 12:43

GwenDragon
 2007-02-17 13:04
#74373 #74373
User since
2005-01-17
14784 Artikel
Admin1
[Homepage]
user image
Wieso?
Geht doch.
Code: (dl )
1
2
3
4
use strict;
my $test="*abc abc* 9- -**** *";
my (@x) = $test=~m/([*a-zA-Z0-9_-]+)/g;
print scalar @x, qq/ Fundstellen\n/;


> perl -w "Script.pl"
5 Fundstellen

View full thread regex-anfänger-frage :)