I tried to create a simple snippet that check if there is a 's' and print me the result
${1:s} ${1/(^s$)/(?1yes:no)/}
When there is only an s it should print me "s yes"
else it should simply print me for example "notAnS no"
What it actually does is printing me "notAns notAnS"
It works well when there is an s
I feel the (?1foo:bar)
does not work properly, I read that from
https://docs.sublimetext.io/guide/extensibility/snippets.html#substitutions