Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import re #Return a list containing every occurrence of "ai": txt = "The rain in Spain" x = re.findall("ai", txt) print(x)
['ai', 'ai']