I'm trying to do some regex matching in the Junos CLI, like
show configuration | match "fancy.pants(reg|ex)". I especially want to look for word boundaries and other character classes. I'm used to
\d, etc. in PCRE-ish regex, and that doesn't work.
According to Juniper's docs:
Juniper Networks uses the regular expressions as defined in POSIX 1003.2.
For the life of me, I cannot find any documentation of the actual 1003.2 standard. I have found a thousand pages explaining regex flavors, but none seem complete or authoritative.
They lead me to understand that POSIX 1003.2 defines Basic and Extended Regular Expressions (BRE & ERE). From experimentation, it seems that the Junos CLI respects at least some Extended features.
So does Junos CLI matching use ERE specifically?
And is there an official standard to reference?