import re # let s be your string: if you want to search anything BUT letters # use this regex: "[^A-Za-z]" re.search("[^A-Za-z]", s)