1 / 7

Regular Expressions

Regular Expressions. What is it 4?. Text searching & replacing Sequence searching (input, DNA) Sequence Tracking Machine Operation logic machines that are not quite computers - ex: some control circuitry. Why learn it?. Powerful for Searching Simplistic and TIME SAVING Extremely fast

oki
Download Presentation

Regular Expressions

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

  2. What is it 4? • Text searching & replacing • Sequence searching (input, DNA) • Sequence Tracking • Machine Operation • logic machines that are not quite computers - ex: some control circuitry

  3. Why learn it? • Powerful for Searching • Simplistic and TIME SAVING • Extremely fast • Repeating characters, case control, optional character sets, alternate patterns • Find multiple sub-strings

  4. Why learn it? • To put it on a resume • Be more productive working with text documents: code, xml, databases, etc. • Easy maintenance • Easier to understand (than alternative) • Smaller Code

  5. Why learn it? • Standardized (somewhat) • Editors, IDEs(vi, grep, php, Eclipse) • CS Concepts

  6. “Regular Expression” • grep patterns = “Regular Expression” • Pattern matching, such as: • Searching text - WILDCARDS++ • Replacing parts of the found text • Multiple-FILE search & replace!

  7. Learning • Use a Text Editor that supports RegExp or Grep Patterns (best use Perl Library: PCRE) • Use the Regular Expression Play Pen webpage (class website) • Experiment, make notes for future

More Related