<filename>WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_RegEx_mutch_object_2.txt.py
import re

# Search for an upper case "S" character in the beginning of a word, and print its position:

txt = "The rain in Spain"
x = re.search(r"\bS\w+", txt)
print(x.span())

<filename>WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_RegEx_mutch_object_2.txt.py
import re

# Search for an upper case "S" character in the beginning of a word, and print its position:

txt = "The rain in Spain"
x = re.search(r"\bS\w+", txt)
print(x.span())

# Search for an upper case "S" character in the beginning of a word, and print its position: