Tuesday, December 25, 2012

Re: Regex for matching the section in vim help files

On 2012–12–25 Marco wrote:

> The problem is to find a regular expression which matches the
> section titles.

The following regex seems to do the job:

\v^.{-}\s\zs(.[^\ ]+)*

Marco

No comments:

Post a Comment