[ create a new paste ] login | about

Link: http://codepad.org/4pCgrrH9    [ raw code | output | fork ]

Perl, pasted on Aug 30:
1
2
3
4
5
6
7
my $string = 'w/';

if ($string =~ m~^[^0-9a-z]~i) {
    print 'Only a-z0-9 allowed'
} else {
    print 'Apparently valid.'
}


Output:
1
Apparently valid.


Create a new paste based on this one


Comments: