Reputation: 18147
I have a log file where summary will have 0 Error(s) or X Error(s).
I tried to find Errors other than 0 Error(s).
I tried with this option in Regular expression but it does no good. \ [^0] Error(s)
Am I missing anything else?
Upvotes: 1
Views: 2616
Reputation: 92976
Try this here
[1-9][0-9]* Error\(s\)
You don't need to escape spaces, but you need to escape brackets, if you want to match them literally. And be careful with [^0]
, it will match anything but a 0 (e.g. akÖ{@), not only other digits.
This expression will also match numbers with more than one digit.
Upvotes: 1