5 lines
172 B
Python
5 lines
172 B
Python
import re
|
|
text = 'Python exercises, PHP exercises, C# exercises'
|
|
pattern = 'exercises'
|
|
for match in re.findall(pattern, text):
|
|
print('Found "%s"' % match) |