I'd like to match the 0's in this output, specifically using "Pattern Recall" feature mentioned in Cisco documentation.
The pattern is:
Gi4/3 0 0 0 0 Gi4/4 0 0 0 0 Gi4/5 0 0 0 0 Gi4/6 0 0 0 0
I'm trying to get this to work, but it gives no output:
switch#show int count | i (0 +)\\1\\2\\3\\4
According to this Cisco Doc it should work,
To create a regular expression that recalls a previous pattern, use parentheses to indicate memory of a specific pattern and a double backslash (\) followed by a digit to reuse the remembered pattern. The digit specifies the occurrence of a parenthesis in the regular expression pattern. When there is more than one remembered pattern in the regular expression, \1 indicates the first remembered pattern, \2 indicates the second remembered pattern, and so on.