I have a program that needs to split lines that are of the format:
IDNumber Firstname Lastname GPA Credits
but I want to keep Firstname and Lastname in the same string.
Is there any easy way to do this (other than just splitting into five strings instead of four) and somehow have the split method only split when there is more than one space?
re.splitonr'\s{2,}'(two or more whitespace characters). - jonrsharpe