Get filename without extension, textmade bundle editor

code-snippets, textmate

Solution

My original goal was to get rid of the .js extension, and this works like a charm.

${TM_FILENAME/[\.js]+$//}

Problem

Thought this might work: ``` ${TM_FILENAME/(.+?)(\.[^.]*$|$)/} ``` But it's giving me this error: ``` Error Parsing Snippet line 1:257: expecting regexp options, found '' ``` Any tips?

Original source