Hi Владимир,
Database patterns are restricted to the glob syntax (see [1]). You can
create multiple patterns…
for $n in 10 to 999
return user:grant('000590', 'write', '000590-' || $n || '_settings')
…but you should do some performance tests before going live with that.
Best,
Кристиан
[1] https://docs.basex.org/wiki/Commands#Glob_Syntax
On Thu, May 21, 2020 at 3:32 PM Ветошкин Владимир <en-trance@yandex.ru> wrote:
Hi, basex team!
How can I use regex in patterns? Or that's impossible?
For example,
user:grant('000590',('write'),('000590-\d{2,3}_settings'))
Or only so:
user:grant('000590',('write'),('000590-*_settings'))