COMPSCI 61B Lecture Notes - Lecture 28: Graph Traversal, Parsing, Regular Expression

42 views4 pages

Document Summary

Discussion right after spring break will give some practice. You should know how to write basic regular expressions, but won"t be expected to know: Little details of how they work in java. How to match the regular expressions using the nfa graph described in bonus materials for this lecture. Regular expressions: a notation for specifying a set of strings. C, then 2 to 4 of any letter, then c, then 3 of any letter, then one character out of the set livmfywcx, then 8 of any letter, then h, then 3 to 5 of any letter, then h. These additional operations confer no additional power to regexes. For every regex in this expanded syntax, there is a regex in the basic syntax. Writing regular expressions is like writing a program. Can be easier to write than to read. Sometimes jokingly referred to as a write-only language .

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

Related Documents