Say for example you have a variable with a string which contains x = '2 C'
, meaning 2 of clubs.
Is there a way of extracting the string (c) and storing it in a variable, i.e. string_var.
Then extract the number (2) into a different variable, i.e. number_var.