In a program where currency is input in the form £2 or 10p, for example, is there a method to split this into two variables in the form
 currencyType = £
 currencyValue = 2
or 
 currencyType = p
 currencyValue = 10

where currencyType is a string and currencyValue is an int?