Wednesday, August 21, 2013

Re: regexp: different match, re=1 vs re=0

William Fugh wrote:

> Version: 7.4, gVim, MS-DOS/MS-Windows
> =========================================================
> :%s#\[\(com\|ref\|ex\|p\|i\|u\|s\|b\)\]\zs\s\+\|\s\+\ze\[/\(com\|ref\|ex\|p\|i\|u\|s\|b\)\]\|[({]\zs\s\+\|\s\+\ze[)}]\|\s\zs\s\+\|\s\+\ze[,;.]\([^.,;]\)##g
> ----------------------------------------------------------------------------------------------------------------
> the command line as above, one line for test as follows, <Space> means a
> space.
> -----------------------------------------------------------------------------------------------------------------
> This<Space>is<Space><Space><Space>[a<Space>test.
> =========================================================
> Result of re=1: This<Space>is<Space>[a<Space>test.
> Result of re=0: This<Space>is<Space><Space>test.


Just to confirm that I can reproduce the bug with Vim-7.4.5 on Linux.

Regards
Dominique

--
--
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/groups/opt_out.

No comments: