Download presentation
Presentation is loading. Please wait.
Published byEthel Audra Booth Modified over 9 years ago
1
Regular Expressions (RegEx)
2
Regular expression is like another language What is a regular expression? Literal (or normal characters) – Alphanumeric abc…ABC…0123... – Punctuation -_,.;:=()/+ *%&{}[]?!$’^|\<>"@# Just like languages Regular expressions also have dialects – awk, egrep, Emacs, grep, Perl, POSIX, Tcl, PROSITE
3
Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPE PTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILF YPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYK LKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLI QYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYC RCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCA ADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVW PDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPH GLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKG VVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGG VRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL
4
VAVK
5
Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPE PTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILF YPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYK LKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLI QYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYC RCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCA ADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVW PDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPH GLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKG VVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGG VRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL
6
Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPE PTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILF YPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYK LKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLI QYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYC RCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCA ADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVW PDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPH GLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKG VVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGG VRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL SKL$
7
Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPE PTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILF YPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYK LKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLI QYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYC RCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCA ADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVW PDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPH GLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKG VVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGG VRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL SKL$ [STAGCN] [RKH] [LIVMAFY] $
8
ALSTDNVANRPMPKPEMF…. Text: The sequence must start with an alanine, followed by any amino acid, followed by a serine or a threonine, two times, followed by any amino acid or nothing, followed by any amino acid except a valine. Regex: ^A.[ST]{2}.?[^V]
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.