in reply to Re^3: regular expressions
in thread regular expressions

I don't think this is particularly good, because "this asilly.gif" and "absolutely not a.jpg", even though you've given them stupid names, are valid filenames.

Replies are listed 'Best First'.
Re^5: regular expressions
by Random_Walk (Prior) on Mar 01, 2005 at 13:47 UTC

    Doh ! thanks for pointing that out. I had in my mind that the OP wanted to filter out lines of text from lines containing only the filename. If the filename can contain spaces then this becomes impossible. Of course this is probably not what the OP wants. I guess he more likely wants to get the files from a directory listing or such like. I Never have been a fan of filenames with spaces in them

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!