Re: [greenstone-users]

From John R. McPherson
DateFri, 25 Apr 2003 22:56:26 +1200
Subject Re: [greenstone-users]
In-Reply-To (20030425054858-2746-qmail-webmail31-rediffmail-com)
On Fri, Apr 25, 2003 at 05:48:58AM -0000, deepak kumar wrote:
> Hello list,
> I was trying to make a collection of video file. Initiallly i
> starated with one file "Alley.MOV"
>
> i entered the following line in collect.cfg
>
>
> plugin UnknownPlug -process_exp "*.MOV" -assoc_field
> "movie"
>
> during import process following error i found.
>
> C:Program Filesgsdl>perl -S import.pl movie
> Quantifier follows nothing before HERE mark in regex m/* << HERE
> .MOV/ at C:Pro
> gram FilesgsdlperllibpluginsUnknownPlug.pm line 149.


Hi,
the problem here is the regular expression you've used in the
process_exp option. It needs a perl regular expression, and not
a DOS-style "glob". Try using the following instead:

plugin UnknownPlug -process_exp "\.MOV$" -assoc_field "movie"

(The \ escapes the dot to mean a real dot, and the $ means
match at the end of the string). It is also case sensitive, so
will only match upper-case MOV. If this is a problem, try
"\.(MOV|mov)$" to get lower-case as well.

Hope this helps
John McPherson