I'm a little confused on VimScript's regex comparison operators.
If I look through
:h =~? my understanding is that
=~ can be used to do a regex match (with the
? making it case-insensitive).
But this code prints "no":
let s:myVar = "S123" if s:myVar =~? "^S\d+" echo "yes" else echo "no" endif
Am I using the
=~ operator incorrectly?