Code: Select all
s = ("If I’m not in a hurry, then I should stay. " +
"On the other hand, if I leave, then I can sleep.")
re.findall(r'[Ii]f (.*), then', s)
Code: Select all
I’m not in a hurry, then I should stay. On the other hand, if I leave
Etwas in der Art:
Code: Select all
If I’m not in a hurry, then I should stay. On the other hand, if I leave, then
Mobile version