It's a "glab" style style match (via fnmatch()), IIRC:
* Matches any string, including the null string.
? Matches any single character.
[...] Matches any one of the enclosed characters. A pair of
characters
separated by a hyphen denotes a range expression; any
character
that sorts between those two characters, inclusive, using the
cur-
rent locale's collating sequence and character set, is
matched.....
Think characters, not numbers. This means that [32-34] matches
"3", the characters between "2" and "4", and "3". It's not the
range of numbers between 32 and 34. [3234] matches "3", "2", "3",
and "4" (both are identical to "2-4").
"f[e-x]*" matches fe-0/0/0 and fxp0.
Thanks,
Phil
ryanL writes:
>erik wins. duh. thanks man.
>
>fwiw, it works on my MX boxes :-/
>
>On Tue, May 7, 2013 at 2:56 PM, Erik Muller <[email protected]> wrote:
>> On 5/7/13 16:03 , ryanL wrote:
>>>
>>> this seems to work fine on my 4200's running different code.
>>>
>>> {master:0}
>>> ry@fs-cs2> show interfaces ge-0/0/[32-34]
>>> ry@fs-cs2> show interfaces ge-0/0/[3234]
>>> ry@fs-cs2> show interfaces ge-0/0/[323]
>>
>>
>> I don't have handy access to anything with 12.2 to try it out, but does
>> "show interfaces ge-0/0/3[2-4]" work? the [32-34] isn't standard regex for
>> what you seem to mean, and it may be that older parsers were more lenient.
>>
>> -e
>>
>> _______________________________________________
>> juniper-nsp mailing list [email protected]
>> https://puck.nether.net/mailman/listinfo/juniper-nsp
>_______________________________________________
>juniper-nsp mailing list [email protected]
>https://puck.nether.net/mailman/listinfo/juniper-nsp
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp