parseSegmentName
Parses the segment name out of the given file name.
Return
the segment name only, or filename if it does not contain a '.' and '_'.
Parses the segment name out of the given file name.
the segment name only, or filename if it does not contain a '.' and '_'.