SLIDE 1
Regular Expressions I
Example (0 ∪ 1)0∗ This is a simplification of ({0} ∪ {1}) ◦ {0}∗ Regular expressions are practically useful Example: finding lines in a file containing “a” or “b” egrep ’(a|b)’ file
September 18, 2020 1 / 13
Regular Expressions I Example (0 1)0 This is a simplification of - - PowerPoint PPT Presentation
Regular Expressions I Example (0 1)0 This is a simplification of ( { 0 } { 1 } ) { 0 } Regular expressions are practically useful Example: finding lines in a file containing a or b egrep (a|b) file
September 18, 2020 1 / 13
September 18, 2020 2 / 13
1
2
3
4
5
6
1, where R1 is a regular expression
September 18, 2020 3 / 13
September 18, 2020 4 / 13
September 18, 2020 5 / 13
September 18, 2020 6 / 13
September 18, 2020 7 / 13
September 18, 2020 8 / 13
September 18, 2020 9 / 13
September 18, 2020 10 / 13
September 18, 2020 11 / 13
1
September 18, 2020 12 / 13
September 18, 2020 13 / 13