Thought it might work:
${TM_FILENAME/(.+?)(\.[^.]*$|$)/}
But this gives me this error:
Error Parsing Snippet line 1:257: expecting regexp options, found ''
Any tips?
My initial goal was to get rid of the .js extension, and it works like a charm.
${TM_FILENAME/[\.js]+$//}
Here's the solution to crop the shared file extension
${TM_FILENAME/(.*)[.](.*)/$1/g}
Source: https://habr.com/ru/post/1720597/More articles:Should I explicitly disconnect from the database when using Java? - javaWhat is the best way to find which library a function can belong to? - gccHow can I get the character EBCDIC value in RPGLE? - ibm-midrangeDeploying ASP.NET MVC 2 Preview 2 with scopes - c #FlashDevelop (Flex / AS3) and localized compiler messages - flexПроблема cvCanny и float 32 бит (IPL_DEPTH_32F) - c++AutoMap.AssemblyOf displays the entire namespace - mappingWebsite Design Tools for Mobile Phones - iphoneWhat's wrong with this custom comparison function - c #Migrating data from PHP to Java - javaAll Articles