
mhx
Enthusiast
Sep 12, 2001, 11:51 AM
Post #2 of 3
(2723 views)
|
You can use the following subroutine to check if a string matches your criteria:
sub check_string { my $str = shift; $str =~ /^[A-Za-z0-9-:.,\/()?]{1,69}$/ and substr($str, 0, 1) ne '/' and substr($str,-1, 1) ne '/' and index($str, '//') < 0; } Hope this helps. -- Marcus
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= ($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"
|