Hello everybody,
I am trying to find a resolution for a regex expression:
I want to have something like this
"string x / 0 / y", where x is in the range between 1-6 and y is in the range between 1-48
I tried this:
interface GigabitEthernet [1-6]/0/([1-4]*[1-8])
but then if y = 50, it still takes 5, and "0" falls
I tried this
interface GigabitEthernet [1-6]/0/([1-4][1-8])
but then, if y = 1-9, it does not match the expression.
I would appreciate any help with this.
Thank!
source
share