using regexps to split the filename