I have this dilemma, if I receive strings on the form of:
<Ranking: AA (John)>
<Ranking: CA (Peter)>
<Ranking: TA-A (Samantha)>
And I want to take the ranking only from the strings (i.e. AA, CA, TA-A)
How can I do it using string methods like split or strip if those can do it ?
Notice that the first characters until the ":" are common between all (<Ranking: ), yet the ranking length and the name length may differ.
Thanks in Advance.