CPSC 1280 Lecture Notes - Lecture 20: Nondeterministic Finite Automaton, Stephen Cole Kleene, Theoretical Computer Science

32 views5 pages

Document Summary

Road map: introduction to regular expression, basic regular expressions, extended regular expressions. Regular expression: a regular expression (regexor regexpfor short) is a sequence of characters that define a search pattern, similar to wild cards, more precise, more complicated, terms. Character: basic unit of text, letter, number, punctuation, space, etc. String: a sequence of 0 to many characters. Jit compilation: many variations in unix programs at bell labs in the 1970s, including vi, emacs, lex, sed, awk and expr, standardized in posix. 2 in 1992, today regular expressions are widely supported in, programming languages, text processing programs (particular lexers, advanced text editors. The character class: single character matching, specify a group of characters enclosed within a pair of rectangular brackets [ ] Ex: [od] matches either o or d, [od][de]matches four patterns, od, oe, dd, de, to match woodhouse and wodehouse, wo[od][de]house.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers