in reply to code for serching .txt file through directories and sub directories

Another issue that hasn't been mentioned: dot. You want to match a literal '.', not an "anything except for newline" character, right? /\.txt$/

This isn't your only issue. But the other issues have already been addressed satisfactorily. I just can't stand looking at the unescaped metacharacter when I know you intended it to be a literal. :)


Dave

  • Comment on Re: code for serching .txt file through directories and sub directories
  • Download Code

Replies are listed 'Best First'.
Re^2: code for serching .txt file through directories and sub directories
by zentara (Cardinal) on Jun 12, 2012 at 11:56 UTC