Yes, but you really don't need a custom function--which requires FileMaker Advanced in order to add to a solution.
Left ( field one ; Position ( Field one ; "." ; Length ( field one ) ; - 1 ) -1 )
returns all text to the left of the last "." found in field one.