Pant, Hridyesh am Montag, 14. November 2005 04.39: > What does this regex compares > > my $patternDir = '^[a-zA-Z0-9/_.\[\]-]*$'
It does compare nothing, it is just assigned to $patternDir. When used, for instance in $filename=~/$patternDir/; it _matches_ if $filename is empty or contains one or more of the chars a-z, A-Z, 0-9, /, [, ], - . This includes paths on platforms separating paths with '/'. See perldoc perlretut perldoc perlre etc. Maybe you want to clarify your queston. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>