How about: re.findall("[A-Za-z]+", "Toronto, Ontario, Canada", 0)[1] 'Ontario' re.findall("[A-Za-z]+", "California - LA", 0)[1] 'LA' This basically finds words composed only of alphabets and outputs the second element in the list.
findall
re
rdd.map(lambda x: re.findall("[A-Za-z]+", x, 0)[1])
ne = city.map(lambda x:re.findall("[A-Za-z]+",x,0)[1])
ne
[u'LA', u'TN']
city
cities
[u'LA', u'TN', u'England']