Ahh but see then you have a problem. youd need to tokenze and then recombine, because nothing states a file cant be named
my.file.is. separated.by.many.extensions
Only the slast being a extension so its not much faster anyway, in fact 2 regexps may be faster. or substitute combined with split