Regular Expressions
Pattern Matching Exercise 2
- Using only the knowledge that you have gained in the course
to this point, try the following exercise:
Exercise |
- Run the example "pat1" as follows: pat1 < pat.dat
- Copy the example "pat1" into a new script called "pat2".
- Make "pat2" print only 2nd address lines (Hint: they contain a ",")
|

Start
|

Solution
|