Hi Marco!
On Di, 25 Dez 2012, Marco wrote:
> That's what my question is about. Finding the section lines is easy.
> But (at least for me) it's hard to extract the title. My current
> regex for section without numbering is as follows:
>
> ^\(\s*\<\w\+\)\+\ze\s\+\*\<\w\+-\w\+-\w\+\*$
>
> (yes, my jump marks always contain two dashes)
> This works fine, except for non-ASCII characters or apostrophes.
I am not sure, what you problem is, but are you possibly looking for
matchstr()?
regards,
Christian
--
IRC ist ein Dienst, der von den IRCADMINS in ihrer Freizeit verwaltet wird.
IRC ist kein RECHT, es ist ein PRIVILEG! Und aus diesem Grund sind IRCADMINS
auch nicht dazu verpflichtet ihr Handeln mit irgendwem abzusprechen.
-- Bytewurm
--
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
Tuesday, December 25, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment