cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2257
Views
0
Helpful
2
Replies

[Q] Regex to differentiate debug all versus undebug all

pethomas
Cisco Employee
Cisco Employee

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
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
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

Thanks Mike

Works a treat.

Cheers

Peter