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
Post a Comment