in reply to filtering folder path using regex.

You should take a look at File::Spec. What you show con be done with File::Spec->splitpath and File::Spec->splitdir. That approach will make your code more portable, and the parsing more accurate.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: filtering folder path using regex.
by blackadder (Hermit) on Jul 13, 2003 at 14:37 UTC
    Thanks Zaxo,

    File::Spec,....I need to lean this one too,...There is no end to Perl libraries,..cheers?
      You may want to test the input "\\someserverhere\c$\foo\bar" as well as it is a valid path.

      -Waswas