Result Size: 625 x 571
demo_regex_search.py:
x
 
import re
txt = "The rain in Spain"
x = re.search("\s", txt)
print("The first white-space character is located in position:", x.start()) 
C:\Users\My Name>python demo_regex_search.py
The first white-space character is located in position: 3