I have text saved in a variable, for example, like this:
let text = getline(line(".")-1)
How do I check if the text matches a regular expression? I'm expecting something like this:
let text = getline(line(".")-1)
if regexp_match(text, "^[Ss]tuff$")
dostuff
endif