Wednesday, July 5, 2017

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

Hi,

Igor Forca schrieb am 05.07.2017 um 14:40:
> I got excellent answer using NEGATIVE, from Jürgen on my private e-mail.
>
>> I would use negative look-ahead (":help /\@!"):
>> /AAA\(000\)\@!\d\d\d\D/
>>
>> This matches 3 "A"s, three digits, which must not be "000", and one non-digit.
>> Note that \(000\)\@! does not consume any character, thus "\d\d\d" will match
>> at the same position where "\(000\)\@!" matched.
>>
>> Regards,
>> Jürgen
>

strange, I didn't intend to send that mail privately. Must have hit
the wrong button.

Regards,
Jürgen

--
~
~
~
:wq

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