So I have been working with vim-tex and ultisnips lately.
Let us say the snippet is of the form (\d)pder
. It is a 5 character snippet and the first character can be accessed by match.group(1)
.
But now I want to access substrings of the snippet with unspecified number of characters using certain pattern. For example, if pderxaybzc
I want to extract the substring xaybzc
by removing pder
, so that each character of the output substring can be used within the snippet definition in different places.
I have tried looking for solutions and haven't found any.
Is this feature present in Ultisnips and can the above mentioned be done?
(Thank you in advance)
(\d)pder(\w*)
would work?