Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 answers
573 users
import re s = 'Python is a programming language that lets you work quickly' print(re.search('python', s, re.IGNORECASE)) ''' run: <_sre.SRE_Match object; span=(0, 6), match='Python'> '''
import re s = 'Python is a programming language that lets you work quickly' print(re.findall('(?i)python', s)) ''' run: ['Python'] '''