Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Last active April 8, 2019 08:12
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 StephenFordham/9e9a4ad9450130bac2b8e4505d8240b0 to your computer and use it in GitHub Desktop.
Save StephenFordham/9e9a4ad9450130bac2b8e4505d8240b0 to your computer and use it in GitHub Desktop.
Regex Example 2
import re
DNA = 'GAGCGCTAGCCAAA'
if re.search('AAA', DNA):
print("Tri-nucleotide found!")
#console output
# Tri-nucleotide found!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment