Hi,
I have a log file with several text OK and error messages.
OK message is always: AAA000A
Error message starts with AAA, then three numbers (but not three zeros) and letter A.
Error sample: AAA001A
From the Vim Regular Expression web site:
http://vimregex.com/#metacharacters
I can see:
\d digit
\D non-digit
To find OK and error message in vim:
/AAA\d\d\d\D
but how to get only error messages.
Something like:
- use: /AAA\d\d\d\D
- except: /AAA000A
Regards
--
--
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