Re: [basex-talk] RESTXQ and regexp

2019-02-23 Thread Liam R. E. Quin
On Fri, 2019-02-22 at 12:05 +0100, Marco Lettere wrote: > (: Matches anything followed by /input :) > declare %rest:path("app/{$path=.+}/input") >function page:inputs($path) { ... }; > > (: Matches all other all paths starting with "app/" :) > declare %rest:path("app/{$path=.+}") >

Re: [basex-talk] BaseX-Talk Digest, Vol 110, Issue 29

2019-02-23 Thread Shaun Flynn
Hello there Marco, This might be down to the choice of regex. Assume $path = "path" app/{$path=.+} Will match "app/path=1234" And "app/path=1234/input" Which I think would be matched by ".+" part of the expression, as "/input" would match ".+". Kind regards On Sat, 23 Feb 2019, 11:00 ,