import re

pattern = re.compile('this')
string = 'search inside of this text please!'

a = pattern.search(string)
b = pattern.findall(string)
print(b)
import re

pattern = re.compile('this')
string = 'search inside of this text please!'

a = pattern.search(string)
b = pattern.findall(string)
print(b)