Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import re
sentence = '''It is traditional for your first program to
say "Hello World" to the terminal.'''
pattern = re.compile(r'Hello World')
print(sentence)
print(re.search(pattern, sentence))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment