[TxMt] Uppercase word in snippet

Carsten Hoever hoever at gmx.de
Tue Sep 24 07:50:35 UTC 2013


Hi,

I want to create a snippet which takes takes the filename, removes the extension and converts the remaining string to uppercase, i.e. "filename.txt" -> "FILENAME".

So far I have ended up with 

${TM_FILENAME/(.*)[.](.*)/\u$1/g}, 

but the \u only converts the first character of the string to uppercase, i.e. I get "Filename". Is there any way to convert the whole string to uppercase?

Regards,

Carsten


More information about the textmate mailing list