Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
Disabled
×
Change Orientation
import re #Check if the string starts with "The" and ends with "Spain": txt = "The rain in Spain" x = re.search("^The.*Spain$", txt) if (x): print("YES! We have a match!") else: print("No match")
YES! We have a match!
×
Report a Problem:
Your E-mail:
Page address:
Description:
Disabled