Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 30, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/429ec2c407b52fd2a7e6c7cff172cbd1 to your computer and use it in GitHub Desktop.
Save amankharwal/429ec2c407b52fd2a7e6c7cff172cbd1 to your computer and use it in GitHub Desktop.
paragraph = """Although never is
often better than
*right* now.
If the implementation
is hard to explain,
it's a bad idea.
If the implementation
is easy to explain,
it may be a good
idea. Namespaces
are one honking
great idea -- let's
do more of those!
"""
m = re.findall("^If",
paragraph,
re.MULTILINE)
print(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment