I just would like to add that this is not Sling's invention, but the pattern matching known to Java developers since more than ten years. First time i've seen it was in Ant:
http://ant.apache.org/manual/dirtasks.html#patterns I think the usage of the "?" is very rare and potentially not needed (Sling doesn't support it) Carsten Stefan Egli wrote > Hi, > > As being discussed in [0] in OAK-5021 there are 2 different ways how > globbing is currently defined in Oak vs in Sling. In Oak globbing is > restricted to ** being 0-n path elements and * being 1 path element, while > in Sling it is more generic in that * means 0-n characters excluding path > boundaries. > > IIUC then the GlobbingPathFilter is basically where Oak implements this and > it looks like this is not yet exposed, as that's internal to observation > filtering only. > > So my suggestion would be to simply extend the GlobbingPathFilter's globbing > definition to match that of Sling. > > Any objections? > > Cheers, > Stefan > -- > [0] - > https://issues.apache.org/jira/browse/OAK-5021?focusedCommentId=15622005&pag > e=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1 > 5622005 > [1] - > https://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/plu > gins/observation/filter/GlobbingPathFilter.html > > > > -- Carsten Ziegeler Adobe Research Switzerland [email protected]
