s="ab.1e.1e3" w = s.split('.1') // w is ["ab","e","e3"] // use help(str.split) in your python IDE to know split in detail.