It's better when it's simple

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
plugin:aclplusregex [2021-01-19 23:50]
andi version upped
plugin:aclplusregex [2021-01-21 12:13] (current)
annda [Examples]
Line 83: Line 83:
 </code> </code>
 +You can also use regular expressions in the id part of the configuration line like this:
 +docs:customer:$1:(\d{3})   @customer_(\d{5})_sub   4
 +Note that you **have to** define your pattern as a group and put it in parentheses, otherwise it won't be recognized as regex.
 +The above would allow user in a group like ''@customer_54321_sub'' to create pages in namespaces such as
 +  * ''docs:customer:54321:001''
 +  * ''docs:customer:54321:002''
 +  * ''docs:customer:54321:003''
 ===== Changleog ===== ===== Changleog =====
plugin/aclplusregex.1611096607.txt.gz ยท Last modified: 2021-01-19 23:50 by andi