I have text stored in a variable, for example, for example:
let text = getline(line(".")-1)
How to check if text matches regular expression? I expect something like this:
let text = getline(line(".")-1) if regexp_match(text, "^[Ss]tuff$") dostuff endif
source share