In the following snippet of LaTeX package (sublime text 3) every time I enter a: Space, . (dot), ?, *, #, Is replaced by "_" character in the part \label{sec:*****} and % section ***** (end). Also replaces capital letters to lowercase. Here the snippet:
<snippet>
<content><![CDATA[
\section{${1:section name}} % (fold)
\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
${0:$TM_SELECTED_TEXT}
% section $2 (end)
]]></content>
<tabTrigger>sec</tabTrigger>
<scope>text.tex.latex</scope>
<description>Section</description>
</snippet>
My question is: how can I change? the snippet to replace accented vowel by vowel without tilde, ie, if I use the snippet the result is:
\section{acción además menú aquí acné} % (fold)
\label{sec:acción_además_menú_aquí_acné}
% section acción_además_menú_aquí_acné (end)
but I want to get the following:
\section{acción además menú aquí acné} % (fold)
\label{sec:accion_ademas_menu_aqui_acne}
% section accion_ademas_menu_aqui_acne (end)