I'm trying to determine how many
# characters are at the beginning of a line.
In perl, I can so something like this:
$match =~ m/^(#+)[^#])/; $length = length $1;
Trying to do something similar in vim:
getline(a:lnum) =~ '\v^(#+)[^#]' let length = strlen \1
I believe the
\v allows me to write a regex like perl, correct?
I'm just not sure if I can do capturing like I'm doing here or not.