Martin Simmons wrote: >>>The important part of that, for our purpose, is the last sentence, >>>because it means that within a [] pair, a \ is just a \, a . is just a >>>., a psi is just a psi[1]. So not only is it impossible to escape the >>>dot within a bracket expression but, fortunately, we don't need to. >>> >>>So, the above expression can be read as thus: >>> >>>^\. Match anything which begins with a literal . >>>( followed by EITHER >>>[^.] a character which is not a literal . >>>|\.. OR a second literal . followed by ANY character >>>) (end of the EITHER-OR part) >>>.* followed by ANY ZERO OR MORE additional characters >>>$ and then ends. >> >>Great. And now, put that into the manual :-) > > > With a warning that it won't match anything, because all filenames begin with > a / or a drive letter :-)
......Right. ;) Forgot that. And next time I'll have to make my references less subtle. The world will always welcome regexes, you know. ;) -- Phil Stracchino [EMAIL PROTECTED] Renaissance Man, Unix generalist, Perl hacker Mobile: 603-216-7037 Landline: 603-886-3518 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users