112

Regular Expressions
Pattern Matching Exercise 4

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


    Exercise
    1. Run the example "pat3" as follows: pat3 < pat.dat
    2. Copy the example "pat3" into a new script called "pat4".
    3. Make "pat4" print only name lines (Hint: they only contain letters and spaces)

    Start

    Solution