I\'m having a little trouble with Python regular expressions.
What is a good way to remove all characters in a string that are not letters or numbers?
Thanks
Also you can try to use isalpha and isnumeric methods the following way:
text = 'base, sample test;' getVals = lambda x: (c for c in text if c.isalpha() or c.isnumeric()) map(lambda word: ' '.join(getVals(word)): text.split(' '))