Textmate Snippet Regex to CamelCase a String -


i need create textmate snippet mirror input , make camel cased.

the base snippet looks this:

<a href="#${1}" data-toggle="tab">${1:tab 1}</a>  example input: text here example output: sometexthere 

i tried doing following mirror replacement, regex captures first match:

${1/\a(\w+)\s?/(?1:\u$1)/ig} 

have looked @ "source" bundle in textmate? has "toggle camelcase / snake_case / pascalcase" command; take inspiration regex in there.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -