Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
import re txt = "The rain in Spain" #Use a case-insensitive search when finding a match for Spain in the text: print(re.findall("spain", txt, re.IGNORECASE)) #Same result using the shorthand re.I flag: print(re.findall("spain", txt, re.I))
['Spain']
['Spain']