Contact: aviboots(AT)netvision.net.il
40,774 questions
53,162 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'] '''