cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1814
Views
0
Helpful
2
Replies
pethomas
Cisco Employee

[Q] Regex to differentiate debug all versus undebug all

Hi Guys

Could be missing the obvious here, but is there a way to differentiate between a debug all and an undebug all.  I was trying to just catch a debug all, but found I'm also catching the undebug all.

ta

Peter

1 ACCEPTED SOLUTION

Accepted Solutions
mtimm
Cisco Employee

You can use an anchor in your regular expression.  Something like "^debug all" versus "^undebug all" where the caret says that the string must start with the pattern.

Mike

View solution in original post

2 REPLIES 2
mtimm
Cisco Employee

You can use an anchor in your regular expression.  Something like "^debug all" versus "^undebug all" where the caret says that the string must start with the pattern.

Mike

View solution in original post

Thanks Mike

Works a treat.

Cheers

Peter

Content for Community-Ad