On 05.07.17 00:25, Igor Forca wrote:
> To find OK and error message in vim:
> /AAA\d\d\d\D
>
> but how to get only error messages.
As you're seeking a numeric (not regex) exclusion, I'd skip complex
regex gymnastics, and just pipe the log file through "grep -v AAA000A"
before using your simple regex, now with no OK messages to confuse
matters.
If that doesn't appeal, just globally s/AAA000A/AAA_OK, before running
your regex. That way an undo restores vim's text buffer, if any reason
for doing that comes to mind. In neither case is the log file affected.
Erik
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment