I am looking for a way to get all of the letters in a string before a : but I have no idea on where to start. Would I use regex? If so how?
string = \"Userna
partition() may be better then split() for this purpose as it has the better predicable results for situations you have no delimiter or more delimiters.