>>>>> On Tue, 13 May 2008 20:26:46 +0300, Jari Fredriksson said:
>
> > and your
> > regexfile = ".*doc"
> > line, wouldn't it be
> > regexfile = "*.doc" instead?
> >
>
> No, it maybe should be
>
> regexfile = ".*\.doc"
>
> but definitely not "*.doc"
>
> Regular expressions are very different from patterns like * and ?
Indeed, I think that is the reason it didn't work for the OP. The regex
".*doc" will match anything containing "doc", including
C:\Documents and Settings\foo.
The correct usage is with two backslashes (because of the quotes) and a dollar
at the end, i.e.
regexfile = ".*\\.doc$"
However, it is simpler to use wildfile in this this case:
wildfile = "*.doc"
__Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|