Wednesday, July 5, 2017

Re: Regula expressions: How to find a string without some other string

On Wednesday, July 5, 2017 at 7:38:58 AM UTC-5, Igor Forca wrote:
> > These are too much combinations. I would suggest using lookahead instead:
> > \vAAA%(.{,2}[1-9])@=\d{3}A
> Above procudes an error "E486 Pattern not found".

Works fine for me. Did you leave out the '\v' by accident? Those two characters let you omit the '\' in many places making the regex a little more readable.

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