I have a problem.
I have 1 variable
set a "mau_gigabitethernet0/0/cpu0/2"
with the help of regexp I need to fetch the 0/0/CPU0
I’m getting an error, “invalid escape \ sequence”
can anyone help me..???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d look for something like this:
Note that the regular expression is in braces, not double-quotes. That is important. (If it was in double quotes, it would have to be
"(?i)\\d+/\\d+/cpu\\d+"which is awkward.) Also, I use(?i)to mark it as a case-insensitive regular expression.