Demonstrate usage of basic regular expression. import re text = "Hello, World!" pattern = r"hello" print("text = ",text) print("we are searching : ",pattern) match = re.search(pattern, text) if match: print(pattern,"Pattern found.") else: print(pattern,"Pattern not found.") Output 1 : text = Hello, World! we are searching : hello hello Pattern not found. Made a changes at line no 3 as pattern=r "Hello" Output 2: text = Hello, World! we are searching : Hello Hello Pattern found.