Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import re #The string property returns the search string: txt = "The rain in Spain" x = re.search(r"\bS\w+", txt) print(x.string)
The rain in Spain