W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2012

Re: directory-listing filter

From: Florent Georges <fgeorges@fgeorges.org>
Date: Sat, 20 Oct 2012 22:04:36 +0200
Message-ID: <CADyR_r2+ixZtAg278vx2vqVFw=z5KFTH+xNLzwPUwPDjjpLuBQ@mail.gmail.com>
To: Mansour Al Akeel <mansour.alakeel@gmail.com>
Cc: xproc-dev@w3.org
On 20 October 2012 21:53, Mansour Al Akeel wrote:

> <p:directory-list include-filter="*xml">
> [...]
> SEVERE: Pipeline failed: java.util.regex.PatternSyntaxException:
> Dangling meta character '*' near index 0

> How can I filter the files ??

  The filter is a regular expression, not a shell "file glob".  So the
following expression should do what you want: ".+xml" (note the point
before the "*", which means "any character, and followed by "+" means
"one or more characters").

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
Received on Saturday, 20 October 2012 20:05:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 October 2012 20:05:23 GMT