Posted by Tim Roberts on 12/31/07 20:07
Anthony Levensalor <anthony@mypetprogrammer.com> wrote:
>
>If it matches, then the filename is no good, ok otherwise
>Test cases:
>
>lib.so - Ok
>tbl_status - Ok
>my file is cool.txt NOT Ok
>\ this- isn't value NOT Ok
>text.c - Ok
>foo - Ok
>superlong_with_underscores.png - Ok
>ILikeTrucks!.jpg NOT Ok
I guess this depends on your definition of "no good". Both "my file is
cool.txt" and "ILikeTrucks!.jpg" are valid file names on both Windows and
Unix.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|