demo_regex_search2.py:
import re txt = "The rain in Spain" x = re.search("Portugal", txt) print(x)
C:\Users\My Name>python demo_regex_search2.py
None