I am trying to write a fold expression, but I can't get the regex to work.
The string I want to check for and the regex are:
# -- Heading 1 --
^.*-{2}\s([\_a-zA-Z0-9]\s*)+\s-{2}$
what syntax do I use to do the check? I tried: (non seemed to work)
if match(line , "\v regex") >= 0
if line =~ "\v regex"