1 / 8

Regular Expressions ( RegEx )

Regular Expressions ( RegEx ). Regular expression is like another language. What is a regular expression? Literal (or normal characters ) Alphanumeric abc…ABC…0123... Punctuation -_ ,.;:=()/+ *%&{}[]?!$’^|<>"@# Just like l anguages Regular expressions also have dialects

ondrea
Download Presentation

Regular Expressions ( RegEx )

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPEPTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILFYPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYKLKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLIQYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYCRCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCAADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVWPDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPHGLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKGVVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGGVRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL

  4. VAVK

  5. Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPEPTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILFYPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYKLKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLIQYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYCRCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCAADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVWPDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPHGLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKGVVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGGVRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL

  6. Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPEPTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILFYPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYKLKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLIQYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYCRCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCAADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVWPDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPHGLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKGVVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGGVRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL SKL$

  7. Why use a regular expression? ALDVANRPMPKPEMFAAHRAKTLAELRKRKLEGVVLIYGFPEPTRAHCDFEPVFRQESCFYWLTGVNEADCAYFLDIETGKEILFYPDIPQAYIIWFGELATIDDIKKKYGFEDVRLMPKIQETLAEYKLKKIHTLPETCILKGYVAVKDKNEFIDVVGELRQIKDDDEMVLIQYACDVNSFAVRDTFKKVHPKMWEHQVEANLIKHYVDYYCRCFAFSTIVCSGENCSILHYHHNNKFIEDGELILIDTGCEYNCAADNTRTIPANGKFSPDQRAVYQAVLDCHNYVVAHAKPGVWPDLAYDSAKVMAAGLLKLGLFQNGTVDEIVDAGALAVFYPHGLGHGMGIDCHEIAGWPRGTCRGKKPHHSFVRFGRTLEKGVVITNEPGCYFIRPSYNAAFADPEKSKYINKEVCERLRKTVGGVRIEDDLLITEDGCKVLSNIPKEIDEIEAFMAKKESKL SKL$ [STAGCN] [RKH] [LIVMAFY] $

  8. ALSTDNVANRPMPKPEMF…. • Text:The sequence must startwith an alanine, followed by any aminoacid, followed by a serine or a threonine, two times, followed by any aminoacid or nothing, followed by any aminoacidexcept a valine. • Regex: ^A.[ST]{2}.?[^V]

More Related