Hello here.
I’ve created a snippet for haXe :
[code]
Class Declaration
<![CDATA[package ${1:${TM_FILEPATH//([a-z]+)/.$1/g}};
class ${TM_FILENAME/.hx//}
{
public function new()
{
$2
}
}
]]>
class
source.haxe.2
[/code]
It’s used to create the begin of a newly creating file.
My problem is for this regex :
${1:${TM_FILEPATH//([a-z]+)/.$1/g}}
It outputs :
.home.blue.git.repos.src.eu.blue.web.site.package/SourceFile.hx
I’d like to have just :
eu.blue.web.site.package
(so, cut just after src. and before /)
It is possible with the use of two regexes, but it seems like I can’t do that. Can I have some help on that ?
Thanks.
Blue112.