Sunday, January 24, 2016

Regex issue with \|-concatenation

Hello Vim-users,

I've try to construct a regex to find the jumping positions of the )-movement.
Unfortunately I can not concatenate two patterns with \|.

My whole pattern looks like this:
'.\n\zs\_^\_$\|[.!?][]]*\(\s\+\n\=\|\n\s*\)\(\s\+\n\)*\zs\S\|\_^\_$\n\s*\zs\S\|\%$'

If I'm just use the first part, '.\n\zs\_^\_$', empty lines like

this will be found by Vim.
If I'm use the complete pattern it skips the empty line. (It already fails
for the first two parts, separated by \|.)

Is this a bug, a pitfall or just an error in my pattern?



Regards,
Olaf

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