sfantar a écrit :
Hello everybody

As the path to a directory under Linux is like /file/file/file where file can be a word containing either - or _ .
Which regexp can match this in the best way?
I tried (/\w[-]?\w/)+ but it doesn't work well.

Thanks in advance.

Could this be a solution : http://www.perlmonks.org/?node_id=511069 ?
In this example, it is told that if a path contains a "\x00", then under Linux the path is no correct.
Is that enough to check the spelling of a path?

Thanks in advance.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to