hsnips icon indicating copy to clipboard operation
hsnips copied to clipboard

Regular Expression with underscore

Open vNguyen514 opened this issue 1 year ago • 0 comments

I want to write b1_1 to make it look like b_{1}^{1} There seems to be an issue to locate the underscore sign ("_") with the regular expression. And underscore isn't a metacharacter.

snippet `[A-Za-z][0-9]_[0-9]` w
``rv=m[0][0] + "_{" +  m[0][1] + "}^{" + m[0][3] +"}"``
endsnippet

vNguyen514 avatar Apr 13 '23 00:04 vNguyen514