Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- one liner to search a file
June 9, 2005, 10:31 am
rate this thread
Re: one liner to search a file
Its an indication that we really do mean a dot here and not an
'any-character'. Inside a character class, a dot is a dot. Anywhere else
and it has a special meaning. Now when it's preceeded by a backslash in
a character class it takes on no special meaning. The backslash is (from
an execution POV) redundant. However when someone else comes along and
reads your code later, they see that you really *did* mean a dot because
you backslashed it.
It's for the programmer, not the interpreter.