xproc / 3.0-steps

Repository for change requests to the standard step library and for official extension steps
10 stars 7 forks source link

File Steps: Missleading example for regex? #504

Closed xml-project closed 2 years ago

xml-project commented 2 years ago

Regarding the use of include-filters and exclude-filters for p:directory-list the spec says:

Regular expressions that match a/a/b/file.txt are, for example, ^/(\w+/){2,3}.+\.txt$, a/a/b/, or /file\.[^/]+$.

To my reading the first example is wrong because it required the test expression to start with '/'. But the given string does not start with '/' nor do the examples given in the paragraph before the quote.

What do I miss?