Community discussions

MikroTik App
 
greebo
just joined
Topic Author
Posts: 10
Joined: Wed Jul 24, 2013 4:01 pm

regexp in capsman provision

Mon May 31, 2021 1:01 pm

RouterOS 6.47.9

we use APs named BLDG##_LVL##_AP##

and unless i use literal identitiy name ("BLDG01_LVL01") in caps-manager provisioning *identity regexp" won't work


for example
^BLDG\d\d\_LVL\d\d

won't work, but it should.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: regexp in capsman provision

Mon May 31, 2021 6:36 pm

but it should.
why?

\d on standard POSIX do not exist
 
greebo
just joined
Topic Author
Posts: 10
Joined: Wed Jul 24, 2013 4:01 pm

Re: regexp in capsman provision

Tue Jun 01, 2021 9:55 am

but it should.
why?

\d on standard POSIX do not exist
so [:digit:] should work, but it does not

https://en.wikibooks.org/wiki/Regular_E ... xpressions

eitherway this works:

^B[0-9][0-9]_L[0-9][0-9]_AP[0-9][0-9]$

10x
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: regexp in capsman provision

Tue Jun 01, 2021 10:35 am

ops, I forget than "Character classes" are not supproted

Who is online

Users browsing this forum: Amazon [Bot] and 25 guests