demo_regex_search2.py:
import re str = "The rain in Spain" x = re.search("Portugal", str) print(x)
➜ begtut>python demo_regex_search2.py
None