Result Size: 625 x 571
demo_regex_meta4.py:
x
 
import re
txt = "hello world"
#Check if the string starts with 'hello':
x = re.findall("^hello", txt)
if (x):
  print("Yes, the string starts with 'hello'")
else:
  print("No match")
C:\Users\My Name>python demo_regex_meta4.py

Yes, the string starts with 'hello'