Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
import re s = 'xyx - aaXY.aaAyyy-aABCaxYxxyYaxaa.' pattern = 'x.' # 'x' followed by any one character for match in re.findall(pattern, s): print('Found: {!r}'.format(match)) ''' run: Found: 'xy' Found: 'x ' Found: 'xY' Found: 'xx' Found: 'xa' '''