Thread regulärer ausdruck (8 answers)
Opened by Gast at 2007-12-09 18:10

jan
 2007-12-09 18:31
#103664 #103664
User since
2003-08-04
2536 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
use strict;

my $string = '2B3K1/8/3N1p1p/6pk/5P1P/6P1/7r/5r2 w - -';

if($string =~ m![1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+/[1-8pPbBnNrRqQkK]+ [wb] [-KkQq] [-a-h36]+!)
{
        print "yo";
}


sowas?

View full thread regulärer ausdruck