111

Regular Expressions
Pattern Matching Exercise 3

  • Using only the knowledge that you have gained in the course to this point, try the following exercise:


    Exercise
    1. Run the example "pat2" as follows: pat2 < pat.dat
    2. Copy the example "pat2" into a new script called "pat3".
    3. Make "pat3" print only 1st address lines (Hint: they start with a number)

    Start

    Solution